Browse Source

AP_HAL: added WARN_IF_UNUSED macro

useful for key functions
mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
90523ae975
  1. 6
      libraries/AP_HAL/AP_HAL.h

6
libraries/AP_HAL/AP_HAL.h

@ -8,6 +8,12 @@ @@ -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…
Cancel
Save