AP_Common: added IGNORE_RETURN() macro

This commit is contained in:
Andrew Tridgell 2020-01-11 17:30:27 +11:00
parent f0d1d3fa90
commit b8f9f171e0

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