зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues. There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files. Differential Revision: https://phabricator.services.mozilla.com/D132289
This commit is contained in:
Родитель
8290a5a7d9
Коммит
f6fdbf028a
|
@ -37,6 +37,3 @@ LOCAL_INCLUDES += [
|
|||
FINAL_LIBRARY = "xul"
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -63,6 +63,5 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
|||
# gobject headers. See bug 1243331 comment 3.
|
||||
CXXFLAGS += [
|
||||
"-Wno-error=unused-function",
|
||||
"-Wno-error=shadow",
|
||||
"-Wno-unused-local-typedefs",
|
||||
]
|
||||
|
|
|
@ -115,6 +115,3 @@ else:
|
|||
FINAL_LIBRARY = "xul"
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -21,6 +21,3 @@ LOCAL_INCLUDES += [
|
|||
FINAL_LIBRARY = "xul"
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -72,6 +72,3 @@ else:
|
|||
FINAL_LIBRARY = "xul"
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -50,6 +50,3 @@ else:
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -42,9 +42,6 @@ EXPORTS.mozilla.a11y += [
|
|||
"IPCTypes.h",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["ACCESSIBILITY"]:
|
||||
EXPORTS.mozilla.a11y += [
|
||||
"DocAccessibleChildBase.h",
|
||||
|
|
|
@ -48,7 +48,4 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
|
|
@ -22,6 +22,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -77,6 +77,3 @@ GeneratedFile(
|
|||
FINAL_LIBRARY = "xul"
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -54,6 +54,3 @@ else:
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -57,6 +57,3 @@ DevToolsModules(
|
|||
"HeapSnapshotFileUtils.js",
|
||||
"shortest-paths.js",
|
||||
)
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -23,9 +23,6 @@ UNIFIED_SOURCES = [
|
|||
"SerializesTypeNames.cpp",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# THE MOCK_METHOD2 macro from gtest triggers this clang warning and it's hard
|
||||
# to work around, so we just ignore it.
|
||||
if CONFIG["CC_TYPE"] == "clang":
|
||||
|
|
|
@ -124,7 +124,4 @@ LOCAL_INCLUDES += [
|
|||
"/tools/profiler",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
EXTRA_JS_MODULES += ["URIFixup.jsm"]
|
||||
|
|
|
@ -39,7 +39,4 @@ LOCAL_INCLUDES += [
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
|
|
@ -580,6 +580,3 @@ GeneratedFile(
|
|||
entry_point="use_counter_list",
|
||||
inputs=["UseCountersWorker.conf"],
|
||||
)
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -172,9 +172,7 @@ PYTHON_UNITTEST_MANIFESTS += [
|
|||
"mozwebidlcodegen/test/python.ini",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG["CC_TYPE"] == "gcc":
|
||||
CXXFLAGS += [
|
||||
"-Wno-maybe-uninitialized",
|
||||
]
|
||||
|
|
|
@ -54,9 +54,6 @@ LOCAL_INCLUDES += [
|
|||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["MOZ_DEBUG"]:
|
||||
XPIDL_SOURCES += [
|
||||
"mozITestInterfaceJS.idl",
|
||||
|
|
|
@ -97,6 +97,3 @@ BROWSER_CHROME_MANIFESTS += [
|
|||
XPCSHELL_TESTS_MANIFESTS += [
|
||||
"test/xpcshell/xpcshell.ini",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -199,9 +199,6 @@ CXXFLAGS += CONFIG["TK_CFLAGS"]
|
|||
|
||||
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
|
||||
CXXFLAGS += ["-Werror=implicit-int-conversion"]
|
||||
CXXFLAGS += ["-Werror=switch"]
|
||||
|
|
|
@ -183,6 +183,3 @@ LOCAL_INCLUDES += [
|
|||
"/layout/xul",
|
||||
"/layout/xul/tree/",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -67,8 +67,5 @@ FINAL_LIBRARY = "xul"
|
|||
|
||||
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += ["tests/browser.ini"]
|
||||
MOCHITEST_MANIFESTS += ["tests/mochitest.ini"]
|
||||
|
|
|
@ -34,6 +34,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -257,6 +257,3 @@ FINAL_LIBRARY = "xul"
|
|||
|
||||
if CONFIG["MOZ_ANDROID_HLS_SUPPORT"]:
|
||||
DEFINES["MOZ_ANDROID_HLS_SUPPORT"] = True
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -111,7 +111,6 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
|||
# Suppress gcc warning about a comparison being always false due to the
|
||||
# range of the data type
|
||||
SOURCES["Key.cpp"].flags += ["-Wno-error=type-limits"]
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
"/dom/base",
|
||||
|
|
|
@ -246,9 +246,6 @@ XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell.ini"]
|
|||
|
||||
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["FUZZING"] and CONFIG["FUZZING_INTERFACES"]:
|
||||
TEST_DIRS += ["fuzztest"]
|
||||
|
||||
|
|
|
@ -70,9 +70,6 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["GNU_CXX"]:
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
"/dom/file/ipc",
|
||||
]
|
||||
|
|
|
@ -33,6 +33,3 @@ if CONFIG["MOZ_WEBRTC"]:
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -17,6 +17,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -20,8 +20,5 @@ CXXFLAGS += CONFIG["MOZ_LIBVPX_CFLAGS"]
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -149,6 +149,3 @@ LOCAL_INCLUDES += [
|
|||
"/xpcom/build",
|
||||
"/xpcom/threads",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -18,7 +18,4 @@ LOCAL_INCLUDES += [
|
|||
"/dom/media/gmp",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] == "clang":
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
|
|
@ -133,9 +133,6 @@ LOCAL_INCLUDES += [
|
|||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
|
||||
CXXFLAGS += [
|
||||
"-Wno-inconsistent-missing-override",
|
||||
|
|
|
@ -20,8 +20,5 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -22,6 +22,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -25,6 +25,3 @@ DEFINES["TRACING"] = True
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -40,6 +40,3 @@ TEST_DIRS += [
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -376,7 +376,6 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += [
|
||||
"-Wno-error=attributes",
|
||||
"-Wno-error=shadow",
|
||||
]
|
||||
|
||||
CXXFLAGS += ["-Werror=switch"]
|
||||
|
|
|
@ -135,8 +135,5 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -28,9 +28,6 @@ if CONFIG["MOZ_OMX"]:
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Avoid warnings from third-party code that we can not modify.
|
||||
if CONFIG["CC_TYPE"] == "clang-cl":
|
||||
CXXFLAGS += ["-Wno-invalid-source-encoding"]
|
||||
|
|
|
@ -114,8 +114,5 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
with Files("android_video_capture/**"):
|
||||
SCHEDULES.exclusive = ["android"]
|
||||
|
|
|
@ -13,6 +13,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -16,8 +16,5 @@ UNIFIED_SOURCES += [
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -34,6 +34,3 @@ FINAL_LIBRARY = "xul"
|
|||
LOCAL_INCLUDES += [
|
||||
"/dom/media/webaudio",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-shadow"]
|
||||
|
|
|
@ -142,6 +142,3 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
LOCAL_INCLUDES += [".."]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -28,8 +28,5 @@ CXXFLAGS += CONFIG["MOZ_LIBVPX_CFLAGS"]
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -109,7 +109,6 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
# android API types
|
||||
CXXFLAGS += [
|
||||
"-Wno-error=attributes",
|
||||
"-Wno-error=shadow",
|
||||
]
|
||||
|
||||
DEFINES["TRACING"] = True
|
||||
|
|
|
@ -37,6 +37,3 @@ if CONFIG['MOZ_WEBRTC']:
|
|||
|
||||
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
||||
DEFINES['WEBRTC_USE_PIPEWIRE'] = True
|
||||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
|
|
@ -92,6 +92,3 @@ DEFINES["R_DEFINED_INT4"] = "int32_t"
|
|||
DEFINES["R_DEFINED_UINT4"] = "uint32_t"
|
||||
DEFINES["R_DEFINED_INT8"] = "int64_t"
|
||||
DEFINES["R_DEFINED_UINT8"] = "uint64_t"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -102,6 +102,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -62,6 +62,3 @@ LOCAL_INCLUDES += [
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -63,6 +63,3 @@ FINAL_LIBRARY = "xul"
|
|||
LOCAL_INCLUDES += [
|
||||
"ipc",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -53,6 +53,3 @@ IPDL_SOURCES += [
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -38,10 +38,6 @@ XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.ini"]
|
|||
MOCHITEST_MANIFESTS += ["test/mochitest/mochitest.ini"]
|
||||
MOCHITEST_CHROME_MANIFESTS += ["test/chrome/chrome.ini"]
|
||||
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["MOZ_NEW_NOTIFICATION_STORE"]:
|
||||
EXTRA_JS_MODULES += [
|
||||
"new/NotificationDB.jsm",
|
||||
|
|
|
@ -42,6 +42,3 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
FINAL_LIBRARY = "xul"
|
||||
|
||||
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -37,7 +37,4 @@ MOCHITEST_CHROME_MANIFESTS += ["tests/chrome.ini"]
|
|||
|
||||
XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.ini"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -103,6 +103,3 @@ FINAL_LIBRARY = "xul"
|
|||
LOCAL_INCLUDES += [
|
||||
"/caps",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -38,6 +38,3 @@ IPDL_SOURCES += [
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["GNU_CXX"]:
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -261,6 +261,3 @@ LOCAL_INCLUDES += [
|
|||
"/layout/svg",
|
||||
"/layout/xul",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -47,6 +47,3 @@ LOCAL_INCLUDES += [
|
|||
"/dom/base",
|
||||
"/dom/html",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -103,6 +103,3 @@ MOCHITEST_CHROME_MANIFESTS += [
|
|||
XPCSHELL_TESTS_MANIFESTS += ["test/xpcshell/xpcshell.ini"]
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += ["test/browser.ini"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -21,6 +21,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -56,6 +56,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -58,6 +58,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -84,6 +84,3 @@ LOCAL_INCLUDES += [
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -58,6 +58,3 @@ RESOURCE_FILES += [
|
|||
"res/table-remove-row-hover.gif",
|
||||
"res/table-remove-row.gif",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -95,8 +95,5 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
with Files("tests/*1151186*"):
|
||||
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
||||
|
|
|
@ -35,8 +35,5 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
with Files("**"):
|
||||
BUG_COMPONENT = ("Core", "Permission Manager")
|
||||
|
|
|
@ -28,6 +28,3 @@ EXPORTS.mozilla += [
|
|||
"mozInlineSpellChecker.h",
|
||||
"mozSpellChecker.h",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -197,9 +197,6 @@ SOURCES += [
|
|||
if CONFIG["CC_TYPE"] == "clang":
|
||||
SOURCES["Factory.cpp"].flags += ["-Wno-implicit-fallthrough"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
|
||||
EXPORTS.mozilla.gfx += [
|
||||
"QuartzSupport.h",
|
||||
|
|
|
@ -163,6 +163,3 @@ LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
|||
LOCAL_INCLUDES += [
|
||||
"/gfx/cairo/cairo/src",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -35,6 +35,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -504,9 +504,8 @@ CXXFLAGS += ["-Werror=switch"]
|
|||
|
||||
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
# Suppress warnings in third-party code.
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG["CC_TYPE"] == "gcc":
|
||||
CXXFLAGS += ["-Wno-maybe-uninitialized"]
|
||||
|
||||
UNIFIED_SOURCES += []
|
||||
|
|
|
@ -79,7 +79,6 @@ DEFINES['SK_OUTLINE_EMBOLDEN_DIVISOR'] = 48
|
|||
CXXFLAGS += [
|
||||
'-Wno-deprecated-declarations',
|
||||
'-Wno-overloaded-virtual',
|
||||
'-Wno-shadow',
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unreachable-code',
|
||||
'-Wno-unused-function',
|
||||
|
|
|
@ -471,7 +471,6 @@ if CONFIG['MOZ_TREE_FREETYPE']:
|
|||
CXXFLAGS += [
|
||||
'-Wno-deprecated-declarations',
|
||||
'-Wno-overloaded-virtual',
|
||||
'-Wno-shadow',
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unreachable-code',
|
||||
'-Wno-unused-function',
|
||||
|
|
|
@ -83,6 +83,3 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -56,9 +56,6 @@ LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
CXXFLAGS += ["-Werror=switch"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
|
|
|
@ -135,8 +135,5 @@ LOCAL_INCLUDES += [
|
|||
|
||||
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -152,6 +152,3 @@ LOCAL_INCLUDES += [
|
|||
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
||||
|
||||
FINAL_LIBRARY = "xul-gtest"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -18,9 +18,6 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
if CONFIG["COMPILE_ENVIRONMENT"]:
|
||||
CbindgenHeader("mapped_hyph.h", inputs=["/third_party/rust/mapped_hyph"])
|
||||
|
||||
|
|
|
@ -23,6 +23,3 @@ LOCAL_INCLUDES += [
|
|||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -30,7 +30,4 @@ XPCOM_MANIFESTS += [
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -133,7 +133,4 @@ include("/ipc/chromium/chromium-config.mozbuild")
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -275,8 +275,5 @@ if CONFIG["MOZ_SANDBOX"] and CONFIG["OS_ARCH"] == "WINNT":
|
|||
"/security/sandbox/win/src/sandboxbroker",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-shadow"]
|
||||
|
||||
# Add libFuzzer configuration directives
|
||||
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|
||||
|
|
|
@ -33,8 +33,5 @@ LOCAL_INCLUDES += [
|
|||
"/js/xpconnect/src",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
with Files("**"):
|
||||
BUG_COMPONENT = ("Core", "XPConnect")
|
||||
|
|
|
@ -13,8 +13,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
CXXFLAGS += ['-fno-strict-aliasing']
|
||||
# Error on bad printf-like format strings
|
||||
CXXFLAGS += ['-Werror=format']
|
||||
# Ignore shadowed variable warnings as there are too many.
|
||||
CXXFLAGS += ['-Wno-shadow']
|
||||
|
||||
# gcc is buggy and warns on our attempts to JS_PUBLIC_API our
|
||||
# forward-declarations or explicit template instantiations. See
|
||||
|
|
|
@ -59,7 +59,4 @@ LOCAL_INCLUDES += [
|
|||
|
||||
include("/ipc/chromium/chromium-config.mozbuild")
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -75,6 +75,6 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-shadow", "-Werror=format"]
|
||||
CXXFLAGS += ["-Werror=format"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -31,7 +31,4 @@ LOCAL_INCLUDES += [
|
|||
"/caps",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -181,6 +181,3 @@ BROWSER_CHROME_MANIFESTS += ["tests/browser.ini"]
|
|||
MARIONETTE_LAYOUT_MANIFESTS += ["tests/marionette/manifest.ini"]
|
||||
MOCHITEST_MANIFESTS += ["tests/mochitest.ini"]
|
||||
MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.ini"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -76,6 +76,3 @@ XPCOM_MANIFESTS += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -51,7 +51,4 @@ LOCAL_INCLUDES += [
|
|||
"/dom/html",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -267,6 +267,3 @@ MOCHITEST_CHROME_MANIFESTS += ["test/chrome.ini"]
|
|||
|
||||
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
||||
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -61,7 +61,4 @@ RESOURCE_FILES.fonts += [
|
|||
"mathfontUnicode.properties",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -72,7 +72,4 @@ LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -52,7 +52,4 @@ LOCAL_INCLUDES += [
|
|||
|
||||
DEFINES["DEBUG_TABLE_STRATEGY_off"] = True
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -73,7 +73,4 @@ LOCAL_INCLUDES += [
|
|||
"/dom/xul",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -44,6 +44,3 @@ LOCAL_INCLUDES += [
|
|||
"/dom/base",
|
||||
"/dom/xul",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
|
@ -69,9 +69,6 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
|
|||
'-framework AudioToolbox',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
FINAL_LIBRARY = 'xul-gtest'
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
|
@ -24,6 +24,3 @@ DisableStlWrapping()
|
|||
XPCSHELL_TESTS_MANIFESTS += [
|
||||
"xpcshell.ini",
|
||||
]
|
||||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче