mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
c66c61180a
commit
821814007e
@ -44,6 +44,7 @@
|
|||||||
#define NOINLINE __attribute__((noinline))
|
#define NOINLINE __attribute__((noinline))
|
||||||
|
|
||||||
#define FORMAT(a,b) __attribute__((format(printf, a, b)))
|
#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
|
// Make some dire warnings into errors
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user