AP_Common: added IGNORE_RETURN

This commit is contained in:
Andrew Tridgell 2020-05-11 17:43:34 +10:00
parent 5c46a0f2a7
commit a552861d8f

View File

@ -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)))