GCS_MAVLink: pragma away address-of-packed-member

g++-9 throws a lot of warnings for taking addresses of packed members.
We can have this warning for our ArduPilot code, but there's way too
many issues within MAVLink to put up with.
This commit is contained in:
Peter Barker 2019-05-02 10:49:36 +10:00 committed by Lucas De Marchi
parent 900d9f71f6
commit 9273ac3631

View File

@ -29,6 +29,7 @@
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#include "include/mavlink/v2.0/ardupilotmega/version.h"