From 6e9ea663e5294d51ac8e1e1e62635454117c0ee8 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 26 Aug 2021 10:46:51 +0200 Subject: [PATCH] AP_Periph: temp fix for -Wcast-align until we fix the generator --- Tools/AP_Periph/can.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index 15637ba8e8..f3f0b699dd 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -15,9 +15,12 @@ /* AP_Periph can support */ + #include #include #include "AP_Periph.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-align" #include #include #include @@ -52,6 +55,7 @@ #include #include #include +#pragma GCC diagnostic pop #include #include #include