While at it, also add -Wunknown-warning-option to basic_disabled_warnings to fix compilation with clang
# avoid them.
basic_disabled_warnings = [
'-Wno-missing-field-initializers',
+ '-Wno-unknown-warning-option',
'-Wno-unused-parameter',
'-Wno-nonnull-compare',
]
_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\"")