Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-09-03 05:08:12 -05:00 committed by GitHub
parent 13bef4ab28
commit 3f8ddaa3b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1551,19 +1551,15 @@ config("default_warnings") {
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
"-Wno-ignored-pragma-optimize",
]
if (llvm_force_head_revision && !is_nacl) {
cflags += [
# TODO(crbug.com/1352183) Evaluate and possibly enable.
"-Wno-bitfield-constant-conversion",
]
}
if (!is_nacl) {
cflags += [
# TODO(crbug.com/1343975) Evaluate and possibly enable.
"-Wno-deprecated-builtins",
# TODO(crbug.com/1352183) Evaluate and possibly enable.
"-Wno-bitfield-constant-conversion",
]
}
}
@ -1688,6 +1684,11 @@ config("chromium_code") {
"-Wthread-safety",
]
}
# TODO(https://crbug.com/1355871): Enable on more platforms.
if ((is_win || is_mac) && target_cpu == "x64") {
cflags += [ "-Wextra-semi" ]
}
}
configs = [