From 7e14f62fcd5226e88d7b86cd92963602e89e6eb5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 7 Jul 2020 18:56:40 +1000 Subject: [PATCH] SITL: suppress cast-align warnings in SIM_XPlane --- libraries/SITL/SIM_XPlane.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/SITL/SIM_XPlane.cpp b/libraries/SITL/SIM_XPlane.cpp index 1b07cbedeb..d6bb0067c7 100644 --- a/libraries/SITL/SIM_XPlane.cpp +++ b/libraries/SITL/SIM_XPlane.cpp @@ -28,6 +28,9 @@ #include #include +// ignore cast errors in this case to keep complexity down +#pragma GCC diagnostic ignored "-Wcast-align" + extern const AP_HAL::HAL& hal; namespace SITL {