48 lines
1.7 KiB
Diff
48 lines
1.7 KiB
Diff
Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn
|
|
===================================================================
|
|
--- chromium-128.0.6613.113.orig/build/config/compiler/BUILD.gn
|
|
+++ chromium-128.0.6613.113/build/config/compiler/BUILD.gn
|
|
@@ -1835,12 +1835,16 @@
|
|
cflags_cc += [
|
|
# See comment for -Wno-c++11-narrowing.
|
|
"-Wno-narrowing",
|
|
-
|
|
- # -Wno-class-memaccess warns about hash table and vector in blink.
|
|
- # But the violation is intentional.
|
|
- "-Wno-class-memaccess",
|
|
]
|
|
|
|
+ if (current_cpu != "ppc64") {
|
|
+ cflags_cc += [
|
|
+ # -Wno-class-memaccess warns about hash table and vector in blink.
|
|
+ # But the violation is intentional.
|
|
+ "-Wno-class-memaccess",
|
|
+ ]
|
|
+ }
|
|
+
|
|
# -Wunused-local-typedefs is broken in gcc,
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63872
|
|
cflags += [ "-Wno-unused-local-typedefs" ]
|
|
@@ -1854,7 +1854,9 @@ config("default_warnings") {
|
|
|
|
# Don't warn about "maybe" uninitialized. Clang doesn't include this
|
|
# in -Wall but gcc does, and it gives false positives.
|
|
- cflags += [ "-Wno-maybe-uninitialized" ]
|
|
+ if (current_cpu != "ppc64") {
|
|
+ cflags += [ "-Wno-maybe-uninitialized" ]
|
|
+ }
|
|
cflags += [ "-Wno-deprecated-declarations" ]
|
|
|
|
# -Wcomment gives too many false positives in the case a
|
|
@@ -1865,7 +1867,9 @@ config("default_warnings") {
|
|
|
|
# -Wpacked-not-aligned complains all generated mojom-shared-internal.h
|
|
# files.
|
|
- cflags += [ "-Wno-packed-not-aligned" ]
|
|
+ if (current_cpu != "ppc64") {
|
|
+ cflags += [ "-Wno-packed-not-aligned" ]
|
|
+ }
|
|
}
|
|
}
|
|
|