AP_Common: added UNUSED_FUNCTION macro

useful for functions that are only in some builds
This commit is contained in:
Andrew Tridgell 2015-02-18 11:12:43 +11:00
parent 50a11c7d5a
commit 26ac29840c
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@
#define PACKED __attribute__((__packed__))
#endif
// used to mark a function that may be unused in some builds
#define UNUSED_FUNCTION __attribute__((unused))
// this can be used to optimize individual functions
#define OPTIMIZE(level) __attribute__((optimize(level)))