From 42ee120e8c49c5f9aaba35689e09f9ecef407758 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 24 Mar 2009 18:47:23 -0700 Subject: 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 --- pr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pr.c') diff --git a/pr.c b/pr.c index dd9ee6e..4afffd6 100644 --- a/pr.c +++ b/pr.c @@ -53,10 +53,10 @@ add_include(struct filepointer *filep, struct inclist *file, if (failOK) return; if (file != file_red) - warning("%s (reading %s, line %d): ", + warning("%s (reading %s, line %ld): ", file_red->i_file, file->i_file, filep->f_line); else - warning("%s, line %d: ", file->i_file, filep->f_line); + warning("%s, line %ld: ", file->i_file, filep->f_line); warning1("cannot find include file \"%s\"\n", include); show_where_not = TRUE; newfile = inc_path(file->i_file, include, type); -- cgit v1.2.3