Skip to content

Commit

Permalink
ArduCopter: Update clang pragma to check for the version of clang tha…
Browse files Browse the repository at this point in the history
…t introduces the warning

AP_Arming: Update clang pragma to check for the version of clang that introduces the warning
  • Loading branch information
katzfey committed Oct 29, 2024
1 parent a6f00a3 commit eddf8c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ArduCopter/AP_Arming.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "Copter.h"

#pragma GCC diagnostic push
#if defined(__clang__)
#if defined(__clang_major__) && __clang_major__ >= 14
#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical"
#endif

Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Arming/AP_Arming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ extern AP_IOMCU iomcu;
#endif

#pragma GCC diagnostic push
#if defined (__clang__)
#if defined(__clang_major__) && __clang_major__ >= 14
#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical"
#endif

Expand Down

0 comments on commit eddf8c1

Please sign in to comment.