From: Iain Ireland Date: Wed, 18 Jan 2023 23:22:41 +0000 Subject: Bug 1810584: Suppress false positive error for gcc r=mgaudet Differential Revision: https://phabricator.services.mozilla.com/D167194 --- js/src/irregexp/moz.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/irregexp/moz.build b/js/src/irregexp/moz.build index 8acb242..ff030ad 100644 --- a/js/src/irregexp/moz.build +++ b/js/src/irregexp/moz.build @@ -14,6 +14,10 @@ include("../js-cxxflags.mozbuild") CXXFLAGS += ["-Wno-error=type-limits", "-Wno-error=return-type"] +# Suppress spurious warnings in third-party code. See bug 1810584. +if CONFIG["CC_TYPE"] == "gcc": + CXXFLAGS += ["-Wno-error=nonnull"] + UNIFIED_SOURCES += [ "imported/regexp-bytecode-generator.cc", "imported/regexp-bytecode-peephole.cc",