AP_Common: add UNUSED_PRIVATE_MEMBER
This commit is contained in:
parent
8b563836ac
commit
578ca147b7
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user