From 8bab228a52be6615eae006951e4d7d0dfc157b7b Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 24 Sep 2000 18:04:17 +0000 Subject: [PATCH] Added printf format attributes git-svn-id: svn://svn.cc65.org/cc65/trunk@335 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/scanner.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); +