forked from mirrors/gecko-dev
Bug 1879464 - Disable -Wshorten-64-to-32 when making implicit-int-conversion an error. r=firefox-build-system-reviewers,ahochheiden
clang 19 is making -Wshorten-64-to-32 enabled by -Wimplicit-int-conversion. This returns to the error level we could handle up to clang 18. Differential Revision: https://phabricator.services.mozilla.com/D201194
This commit is contained in:
parent
490f9ee48d
commit
6cdcc2b550
2 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
|||
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
|
||||
CXXFLAGS += ["-Werror=implicit-int-conversion"]
|
||||
CXXFLAGS += ["-Werror=implicit-int-conversion", "-Wno-shorten-64-to-32"]
|
||||
CXXFLAGS += ["-Werror=switch"]
|
||||
|
||||
if CONFIG["CC_TYPE"] == "gcc":
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ if CONFIG["MOZ_ENABLE_D3D10_LAYER"]:
|
|||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
|
||||
CXXFLAGS += ["-Werror=implicit-int-conversion"]
|
||||
CXXFLAGS += ["-Werror=implicit-int-conversion", "-Wno-shorten-64-to-32"]
|
||||
CXXFLAGS += ["-Werror=switch"]
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
|
|
|||
Loading…
Reference in a new issue