mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Common: added IGNORE_RETURN
This commit is contained in:
parent
5c46a0f2a7
commit
a552861d8f
@ -38,6 +38,9 @@
|
||||
// sometimes we need to prevent inlining to prevent large stack usage
|
||||
#define NOINLINE __attribute__((noinline))
|
||||
|
||||
// used to ignore results for functions marked as warn unused
|
||||
#define IGNORE_RETURN(x) do {if (x) {}} while(0)
|
||||
|
||||
#define FMT_PRINTF(a,b) __attribute__((format(printf, a, b)))
|
||||
#define FMT_SCANF(a,b) __attribute__((format(scanf, a, b)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user