AP_Common: added OPTIMIZE() macro

this can be used to change the compiler optimization level of
individual functions

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
This commit is contained in:
Andrew Tridgell 2013-10-02 16:09:13 +10:00
parent fb19dbb404
commit f1e120113c

View File

@ -38,6 +38,9 @@
#define PACKED __attribute__((__packed__))
#endif
// this can be used to optimize individual functions
#define OPTIMIZE(level) __attribute__((optimize(level)))
// Make some dire warnings into errors
//
// Some warnings indicate questionable code; rather than let