GCS_MAVLink: prgama away address-of-packed-member only for g++ >= 9

This commit is contained in:
Jaaaky 2019-05-02 12:34:52 +03:00 committed by Peter Barker
parent 48aacb9462
commit 971e3af826

View File

@ -29,7 +29,10 @@
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
#if defined(__GNUC__) && __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#endif
#include "include/mavlink/v2.0/ardupilotmega/version.h"