From: cuz Date: Sun, 24 Sep 2000 18:04:17 +0000 (+0000) Subject: Added printf format attributes X-Git-Tag: V2.12.0~3191 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8bab228a52be6615eae006951e4d7d0dfc157b7b;p=cc65 Added printf format attributes git-svn-id: svn://svn.cc65.org/cc65/trunk@335 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/scanner.h b/src/ld65/scanner.h index 2c0a5ac39..02d534978 100644 --- a/src/ld65/scanner.h +++ b/src/ld65/scanner.h @@ -129,10 +129,10 @@ extern unsigned CfgErrorCol; -void CfgWarning (const char* Format, ...); +void CfgWarning (const char* Format, ...) attribute((format(printf,1,2))); /* Print a warning message adding file name and line number of the config file */ -void CfgError (const char* Format, ...); +void CfgError (const char* Format, ...) attribute((format(printf,1,2))); /* Print an error message adding file name and line number of the config file */ void CfgNextTok (void); @@ -196,3 +196,4 @@ void CfgCloseInput (void); +