This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
ptrcports/electron/shut-the-fuck-up.patch.chromium

71 lines
2.3 KiB
Plaintext

--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1650,9 +1650,9 @@
# TODO(thakis): Enable this more often, https://crbug.com/346399
# use_libfuzzer: https://crbug.com/1063180
- if ((!is_nacl || is_nacl_saigo) && !use_libfuzzer) {
- cflags += [ "-Wunreachable-code-aggressive" ]
- }
+ #if ((!is_nacl || is_nacl_saigo) && !use_libfuzzer) {
+ # cflags += [ "-Wunreachable-code-aggressive" ]
+ #}
# Thread safety analysis is broken under nacl: https://crbug.com/982423.
if (!is_nacl || is_nacl_saigo) {
--- a/third_party/electron_node/deps/v8/BUILD.gn
+++ b/third_party/electron_node/deps/v8/BUILD.gn
@@ -1190,7 +1190,7 @@
if (v8_current_cpu != "mips" && v8_current_cpu != "mipsel") {
# We exclude MIPS because the IsMipsArchVariant macro causes trouble.
- cflags += [ "-Wunreachable-code" ]
+ #cflags += [ "-Wunreachable-code" ]
}
if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
--- a/v8/BUILD.gn
+++ b/v8/BUILD.gn
@@ -1277,7 +1277,7 @@
if (v8_current_cpu != "mips" && v8_current_cpu != "mipsel") {
# We exclude MIPS because the IsMipsArchVariant macro causes trouble.
- cflags += [ "-Wunreachable-code" ]
+ # cflags += [ "-Wunreachable-code" ]
}
if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
--- a/third_party/angle/BUILD.gn
+++ b/third_party/angle/BUILD.gn
@@ -222,7 +222,7 @@
"-Wparentheses",
"-Wrange-loop-analysis",
"-Wstrict-prototypes",
- "-Wunreachable-code-aggressive",
+ #"-Wunreachable-code-aggressive",
"-Wshorten-64-to-32",
]
}
--- a/third_party/dawn/src/dawn/common/BUILD.gn
+++ b/third_party/dawn/src/dawn/common/BUILD.gn
@@ -119,7 +119,7 @@
"-Wshadow-field",
"-Wstrict-prototypes",
"-Wtautological-unsigned-zero-compare",
- "-Wunreachable-code-aggressive",
+ #"-Wunreachable-code-aggressive",
"-Wunused-but-set-variable",
]
--- a/third_party/openscreen/src/build/config/BUILD.gn
+++ b/third_party/openscreen/src/build/config/BUILD.gn
@@ -165,7 +165,7 @@
"-Wloop-analysis",
# Warn on unreachable code.
- "-Wunreachable-code-aggressive",
+ #"-Wunreachable-code-aggressive",
# Warn on undefined variable usage.
"-Wundefined-var-template",