diff --git a/meson.build b/meson.build index caed1d75f0a..922e5d5a9b7 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 7b797323262..7e604b8283b 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\"")