diff options
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | src/fundamental/macro-fundamental.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index caed1d75f0..922e5d5a9b 100644 --- a/meson.build +++ b/meson.build @@ -367,6 +367,7 @@ endif # avoid them. basic_disabled_warnings = [ '-Wno-missing-field-initializers', + '-Wno-unknown-warning-option', '-Wno-unused-parameter', '-Wno-nonnull-compare', ] diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 7b79732326..7e604b8283 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -32,6 +32,10 @@ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Wshadow\"") +#define DISABLE_WARNING_STRINGOP_OVERREAD \ + _Pragma("GCC diagnostic push"); \ + _Pragma("GCC diagnostic ignored \"-Wstringop-overread\"") + #define DISABLE_WARNING_INCOMPATIBLE_POINTER_TYPES \ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Wincompatible-pointer-types\"") |