Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit 9f99fc0

Browse files
authored
Don't pass new -Wno flags to Xcode (#572)
1 parent 8a1cf15 commit 9f99fc0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/config/compiler/BUILD.gn

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,6 @@ if (is_win) {
626626
# Disables.
627627
"-Wno-missing-field-initializers", # "struct foo f = {0};"
628628
"-Wno-unused-parameter", # Unused function parameters.
629-
# Unqualified std::move is pretty common.
630-
"-Wno-unqualified-std-cast-call",
631629
]
632630

633631
if (is_wasm) {
@@ -649,6 +647,8 @@ if (is_win) {
649647
"-Wno-deprecated-copy",
650648
# Needed for compiling Skia with clang-12
651649
"-Wno-psabi",
650+
# Unqualified std::move is pretty common.
651+
"-Wno-unqualified-std-cast-call",
652652
]
653653
if (!is_fuchsia) {
654654
default_warning_flags += [
@@ -720,7 +720,9 @@ config("no_chromium_code") {
720720

721721
# TODO(zra): Remove when zlib no longer needs this.
722722
# https://github.com/flutter/flutter/issues/103568
723-
cflags += [ "-Wno-deprecated-non-prototype" ]
723+
if (!use_xcode) {
724+
cflags += [ "-Wno-deprecated-non-prototype" ]
725+
}
724726

725727
cflags += default_warning_flags
726728
cflags_cc += default_warning_flags_cc

0 commit comments

Comments
 (0)