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 --- def.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'def.h') diff --git a/def.h b/def.h index ca37e73..6c705a1 100644 --- a/def.h +++ b/def.h @@ -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); -- cgit v1.2.3