Message ID | 20220615070331.GA4485@delia.home |
---|---|
State | New |
Headers | show |
Series | [committed,gdb/build] Fix build for gcc < 11 | expand |
diff --git a/include/diagnostics.h b/include/diagnostics.h index 8bf5a3c3d9b..3da88282261 100644 --- a/include/diagnostics.h +++ b/include/diagnostics.h @@ -76,8 +76,10 @@ # define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \ DIAGNOSTIC_IGNORE ("-Wstringop-truncation") +# if __GNUC__ >= 11 # define DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD \ DIAGNOSTIC_IGNORE ("-Wstringop-overread") +#endif # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \ DIAGNOSTIC_IGNORE ("-Wformat-nonliteral")