$ make CC=cgcc CHECK="smatch -Wsparse-all" 2>&1 | tee debug
$ sed -n 's/.*warning: //p' debug | sort | uniq -c | sort -n | tail -1
7218 passing argument 1 of 'opr_AssertionFailed' discards 'const' qualifier from pointer target type [enabled by default]
Change-Id: I81c5c1db39b1a08c7dda3caa3d4cdf685186ff5b
Address: http://smatch.sourceforge.net/
Reviewed-on: http://gerrit.openafs.org/10019
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
#define TIMESTAMP_BUFFER_SIZE 26 /* including the null */
void
-opr_AssertionFailed(char *file, int line)
+opr_AssertionFailed(const char *file, int line)
{
char tdate[TIMESTAMP_BUFFER_SIZE];
time_t when;
# define opr_abort() abort()
#endif
-extern void opr_AssertionFailed(char *, int) AFS_NORETURN;
+extern void opr_AssertionFailed(const char *, int) AFS_NORETURN;
extern void opr_AssertFailU(const char *, const char *, int) AFS_NORETURN;
/* opr_Assert is designed to work in a similar way to the operating