GCS_MAVLink: ignore alignment warnings in MAVLink headers

This commit is contained in:
Andrew Tridgell 2014-07-25 15:46:20 +10:00
parent 6b619562b5
commit ffd6fa1366
1 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,13 @@
#define MAVLINK_COMM_NUM_BUFFERS 3
#endif
/*
The MAVLink protocol code generator does its own alignment, so
alignment cast warnings can be ignored
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
#include "include/mavlink/v1.0/ardupilotmega/version.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
@ -138,4 +145,6 @@ enum gcs_severity {
SEVERITY_USER_RESPONSE
};
#pragma GCC diagnostic pop
#endif // GCS_MAVLink_h