]> git.sur5r.net Git - cc65/blobdiff - src/ld65/error.h
Use gcc attribs, fixed a wrong arg
[cc65] / src / ld65 / error.h
index 9f213abe2ea53da82328a77219543cf83eadbf14..2ce1c86011d76b73ed72c1f73d130277f882f0b6 100644 (file)
 
 
 
+/* common */
+#include "attrib.h"
+
+
+
 /*****************************************************************************/
 /*                                  Data                                    */
 /*****************************************************************************/
@@ -57,13 +62,13 @@ extern const char _MsgFail [];
 
 
 
-void Warning (const char* Format, ...);
+void Warning (const char* Format, ...) attribute((format(printf,1,2)));
 /* Print a warning message */
 
-void Error (const char* Format, ...);
+void Error (const char* Format, ...) attribute((format(printf,1,2)));
 /* Print an error message and die */
 
-void Internal (const char* Format, ...);
+void Internal (const char* Format, ...) attribute((format(printf,1,2)));
 /* Print an internal error message and die */
 
 #define CHECK(c)                                                       \