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 /parse.c | |
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 'parse.c')
-rw-r--r-- | parse.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -90,7 +90,7 @@ gobble(struct filepointer *filep, struct inclist *file, warning("%s", file_red->i_file); if (file_red != file) warning1(" (reading %s)", file->i_file); - warning1(", line %d: unknown directive == \"%s\"\n", + warning1(", line %ld: unknown directive == \"%s\"\n", filep->f_line, line); break; } @@ -637,7 +637,7 @@ find_includes(struct filepointer *filep, struct inclist *file, warning("%s", file_red->i_file); if (file_red != file) warning1(" (reading %s)", file->i_file); - warning1(", line %d: incomplete undef == \"%s\"\n", + warning1(", line %ld: incomplete undef == \"%s\"\n", filep->f_line, line); break; } @@ -660,7 +660,7 @@ find_includes(struct filepointer *filep, struct inclist *file, warning("%s", file_red->i_file); if (file_red != file) warning1(" (reading %s)", file->i_file); - warning1(", line %d: %s\n", + warning1(", line %ld: %s\n", filep->f_line, line); break; @@ -673,14 +673,14 @@ find_includes(struct filepointer *filep, struct inclist *file, warning("%s", file_red->i_file); if (file_red != file) warning1(" (reading %s)", file->i_file); - warning1(", line %d: unknown directive == \"%s\"\n", + warning1(", line %ld: unknown directive == \"%s\"\n", filep->f_line, line); break; case -2: warning("%s", file_red->i_file); if (file_red != file) warning1(" (reading %s)", file->i_file); - warning1(", line %d: incomplete include == \"%s\"\n", + warning1(", line %ld: incomplete include == \"%s\"\n", filep->f_line, line); break; } |