From 271571e29c6c6a91f818c826b7c5118e9cce457a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Apr 2023 08:07:46 +1000 Subject: [PATCH] AP_GPS_NMEA: fix stringop truncation failure on g++ 9 --- libraries/AP_GPS/AP_GPS_NMEA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_NMEA.cpp b/libraries/AP_GPS/AP_GPS_NMEA.cpp index 312cbfcc33..f9b6a02859 100644 --- a/libraries/AP_GPS/AP_GPS_NMEA.cpp +++ b/libraries/AP_GPS/AP_GPS_NMEA.cpp @@ -776,7 +776,7 @@ void AP_GPS_NMEA::parse_versiona_field(uint16_t term_number, const char *term) // ::printf("VERSIONA[%u]='%s'\n", term_number, term); auto &v = _versiona; #pragma GCC diagnostic push -#if defined(__GNUC__) && __GNUC__ >= 10 +#if defined(__GNUC__) && __GNUC__ >= 9 #pragma GCC diagnostic ignored "-Wstringop-truncation" #endif switch (term_number) {