diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-24 18:47:23 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-24 19:52:16 -0700 |
commit | 42ee120e8c49c5f9aaba35689e09f9ecef407758 (patch) | |
tree | 68d73306595d0556be18cfaad64243b23f4a2b4d /def.h | |
parent | c7c7197d265a299c82c6629fba867730aad81375 (diff) |
Fix gcc, sparse & lint warnings
cppsetup.c:74:9: warning: Using plain integer as NULL pointer
parse.c: In function `gobble':
parse.c:94: warning: int format, long int arg (arg 2)
parse.c: In function `find_includes':
parse.c:641: warning: int format, long int arg (arg 2)
parse.c:664: warning: int format, long int arg (arg 2)
parse.c:677: warning: int format, long int arg (arg 2)
parse.c:684: warning: int format, long int arg (arg 2)
pr.c: In function `add_include':
pr.c:57: warning: int format, long int arg (arg 4)
pr.c:59: warning: int format, long int arg (arg 3)
declared global, could be static
sig_act main.c(142)
predefs main.c:imakemdep.h(51)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'def.h')
-rw-r--r-- | def.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -176,6 +176,6 @@ int cppsetup(const char *filename, struct inclist *inc); -extern void fatalerr(const char *, ...); -extern void warning(const char *, ...); -extern void warning1(const char *, ...); +extern void fatalerr(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2); +extern void warning(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2); +extern void warning1(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2); |