mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_Common: added UNUSED_FUNCTION macro
useful for functions that are only in some builds
This commit is contained in:
parent
50a11c7d5a
commit
26ac29840c
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user