mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 08:53:56 -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__))
|
#define PACKED __attribute__((__packed__))
|
||||||
#endif
|
#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
|
// this can be used to optimize individual functions
|
||||||
#define OPTIMIZE(level) __attribute__((optimize(level)))
|
#define OPTIMIZE(level) __attribute__((optimize(level)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user