AP_Common: add UNUSED_PRIVATE_MEMBER

This commit is contained in:
Andy Piper 2022-02-26 13:51:26 +00:00 committed by Peter Barker
parent 8b563836ac
commit 578ca147b7

View File

@ -33,6 +33,13 @@
// used to mark a function that may be unused in some builds
#define UNUSED_FUNCTION __attribute__((unused))
// used to mark an attribute that may be unused in some builds
#ifdef __clang__
#define UNUSED_PRIVATE_MEMBER __attribute__((unused))
#else
#define UNUSED_PRIVATE_MEMBER
#endif
// this can be used to optimize individual functions
#define OPTIMIZE(level) __attribute__((optimize(level)))