From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- js/src/irregexp/moz.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'js/src/irregexp/moz.build') diff --git a/js/src/irregexp/moz.build b/js/src/irregexp/moz.build index ff030ad4bd..2c363ad349 100644 --- a/js/src/irregexp/moz.build +++ b/js/src/irregexp/moz.build @@ -14,9 +14,13 @@ include("../js-cxxflags.mozbuild") CXXFLAGS += ["-Wno-error=type-limits", "-Wno-error=return-type"] -# Suppress spurious warnings in third-party code. See bug 1810584. +# Suppress spurious warnings in third-party code. +# See bug 1810584 and bug 1879225. if CONFIG["CC_TYPE"] == "gcc": - CXXFLAGS += ["-Wno-error=nonnull"] + CXXFLAGS += ["-Wno-error=nonnull", "-Wno-narrowing"] +if CONFIG["CC_TYPE"] in ("clang", "clang-cl"): + CXXFLAGS += ["-Wno-c++11-narrowing"] + UNIFIED_SOURCES += [ "imported/regexp-bytecode-generator.cc", -- cgit v1.2.3