mirror of https://github.com/ArduPilot/ardupilot
AP_GPS_NMEA: fix stringop truncation failure on g++ 9
This commit is contained in:
parent
95d8719465
commit
271571e29c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue