mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: added WARN_IF_UNUSED macro
useful for key functions
This commit is contained in:
parent
8e1bee3a5e
commit
90523ae975
|
@ -8,6 +8,12 @@
|
|||
#include "AP_HAL_Namespace.h"
|
||||
#include "AP_HAL_Boards.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define WARN_IF_UNUSED __attribute__ ((warn_unused_result))
|
||||
#else
|
||||
#define WARN_IF_UNUSED
|
||||
#endif
|
||||
|
||||
/* HAL Module Classes (all pure virtual) */
|
||||
#include "UARTDriver.h"
|
||||
#include "I2CDriver.h"
|
||||
|
|
Loading…
Reference in New Issue