mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ArduCopter: Update clang pragma to check for the version of clang that introduces the warning
AP_Arming: Update clang pragma to check for the version of clang that introduces the warning
This commit is contained in:
parent
1e17278bda
commit
281ea91ee5
@ -1,7 +1,7 @@
|
|||||||
#include "Copter.h"
|
#include "Copter.h"
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#if defined(__clang__)
|
#if defined(__clang_major__) && __clang_major__ >= 14
|
||||||
#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical"
|
#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ extern AP_IOMCU iomcu;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#if defined (__clang__)
|
#if defined(__clang_major__) && __clang_major__ >= 14
|
||||||
#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical"
|
#pragma GCC diagnostic ignored "-Wbitwise-instead-of-logical"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user