AP_Scripting: fix compile on clang 10

This commit is contained in:
Andy Piper 2020-11-24 13:50:08 +00:00 committed by Peter Barker
parent c2a7e3be58
commit a592d76866
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
#if defined(ARDUPILOT_BUILD) #if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wfloat-equal" #pragma GCC diagnostic ignored "-Wfloat-equal"
#if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 11 #if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 10
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif #endif
#endif #endif

View File

@ -26,7 +26,7 @@
#if defined(ARDUPILOT_BUILD) #if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 11 #if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 10
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif #endif
#endif #endif

View File

@ -9,7 +9,7 @@
#if defined(ARDUPILOT_BUILD) #if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wfloat-equal" #pragma GCC diagnostic ignored "-Wfloat-equal"
#if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 11 #if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 10
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif #endif
#endif #endif