From 76e2d950d415c1c711f5e89d25fe165c516a0879 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 14 Jun 2023 11:27:44 -0400 Subject: [PATCH] AP_Arming: squash bitwise & warnings --- libraries/AP_Arming/AP_Arming.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index c87d7bf005..9059488b7b 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -152,6 +152,11 @@ const AP_Param::GroupInfo AP_Arming::var_info[] = { extern AP_IOMCU iomcu; #endif +#pragma GCC diagnostic push +#if defined (__clang__) +#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical" +#endif + AP_Arming::AP_Arming() { if (_singleton) { @@ -1846,3 +1851,5 @@ AP_Arming &arming() } }; + +#pragma GCC diagnostic pop