mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-13 02:54:09 +08: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:
committed by
Andrew Tridgell
parent
c66c61180a
commit
821814007e
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user