]> git.sur5r.net Git - cc65/blobdiff - src/cc65/asmcode.h
Use gcc function attributes, fix several format related problems
[cc65] / src / cc65 / asmcode.h
index 69652c21a4550306080debf0a39e23d1ec1d438c..ab0b73b635fb9fc86dee764e8e52261329c480d6 100644 (file)
@@ -40,6 +40,9 @@
 
 #include <stdio.h>
 
+/* common */
+#include "attrib.h"
+
 
 
 /*****************************************************************************/
@@ -59,7 +62,7 @@ typedef struct Line_* CodeMark;
 
 
 
-void AddCodeLine (const char* Format, ...);
+void AddCodeLine (const char* Format, ...) attribute ((format(printf,1,2)));
 /* Add a new line of code to the output */
 
 void AddCodeHint (const char* Hint);
@@ -84,3 +87,4 @@ void WriteOutput (FILE* F);
 
 
 
+