AP_HAL: added WARN_IF_UNUSED macro

useful for key functions
This commit is contained in:
Andrew Tridgell 2013-01-09 20:41:37 +11:00
parent 8e1bee3a5e
commit 90523ae975
1 changed files with 6 additions and 0 deletions

View File

@ -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"