AP_Scripting: fixed gcc 9.x build

This commit is contained in:
Andrew Tridgell 2020-11-13 12:13:58 +11:00 committed by Peter Barker
parent c14d19be68
commit c8e604a730
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
#if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang_major__) && __clang_major__ >= 11
#if (defined(__GNUC__) && __GNUC__ >= 7 && __GNUC__ < 9) || (defined(__clang_major__) && __clang_major__ >= 11)
#pragma GCC diagnostic ignored "-Wstring-plus-int"
#endif
#endif