AP_Common: add scanf format macro

Add a macro to annotate functions that act like scanf.  Calling the
printf format macro as FORMAT was bad as can be seen now. Later we need
to rename it to FMT_PRINTF.
This commit is contained in:
Lucas De Marchi
2015-11-10 17:05:34 +11:00
committed by Andrew Tridgell
parent c66c61180a
commit 821814007e
+1
View File
@@ -44,6 +44,7 @@
#define NOINLINE __attribute__((noinline))
#define FORMAT(a,b) __attribute__((format(printf, a, b)))
#define FMT_SCANF(a,b) __attribute__((format(scanf, a, b)))
// Make some dire warnings into errors
//