diff options
-rw-r--r-- | include/diagnostics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/diagnostics.h b/include/diagnostics.h index 8bf5a3c..3da8828 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") |