detect and fix incorect format args
[cyclone68000.git] / app.h
diff --git a/app.h b/app.h
index 5a064ab..15ab06c 100644 (file)
--- a/app.h
+++ b/app.h
@@ -55,7 +55,11 @@ extern const char * const Sarm[4]; // Sign-extend ARM Extensions for operand siz
 extern int  Cycles;   // Current cycles for opcode\r
 extern int  pc_dirty; // something changed PC during processing\r
 extern int  arm_op_count; // for stats\r
-void ot(const char *format, ...);\r
+void ot(const char *format, ...)\r
+#ifdef __GNUC__\r
+  __attribute__((format(printf, 1, 2)));\r
+#endif\r
+  ;\r
 void ltorg();\r
 int MemHandler(int type,int size,int addrreg=0,int need_addrerr_check=1);\r
 void FlushPC(int force=0);\r