AP_GPS_NMEA: fix stringop truncation failure on g++ 9

This commit is contained in:
Peter Barker 2023-04-14 08:07:46 +10:00 committed by Andrew Tridgell
parent 95d8719465
commit 271571e29c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {