summaryrefslogtreecommitdiffstats
path: root/BUILD.gn
diff options
context:
space:
mode:
authorHidehiko Abe <hidehiko@chromium.org>2018-12-15 00:36:33 +0900
committerchrome-bot <chrome-bot@chromium.org>2018-12-16 16:26:17 -0800
commit4941951a83ba810f01efcc0914d59b64171db084 (patch)
tree8de5f7780b438a74bd836529129c131a587efc1a /BUILD.gn
parent6ddb2e07a8f13d0a25c4458110b0cbf125a48d7c (diff)
downloadplatform_external_libchrome-4941951a83ba810f01efcc0914d59b64171db084.tar.gz
platform_external_libchrome-4941951a83ba810f01efcc0914d59b64171db084.tar.bz2
platform_external_libchrome-4941951a83ba810f01efcc0914d59b64171db084.zip
libchrome: Add -Wno-unreachable-code.
During the preparation of SCons -> gn migration for libchrome, -Wunreachable-code is set by default https://chromium.git.corp.google.com/chromiumos/platform2/+/8eb370f60f962801a98efce8dd3b3ec84048ebd0 which causes a build failure of libchrome. BUG=chromium:807158 TEST=Build locally. Change-Id: Ic71cb7a94fec1084c7164738268b103f32019e0c Reviewed-on: https://chromium-review.googlesource.com/1377819 Commit-Ready: Hidehiko Abe <hidehiko@chromium.org> Tested-by: Hidehiko Abe <hidehiko@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn6
1 files changed, 5 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 7df846a0e..6c310b9bd 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -13,7 +13,11 @@ group("all") {
# Suppressing warning in base/strings/stringprintf.cc.
config("base_core_config") {
- cflags = [ "-Wno-format-nonliteral" ]
+ cflags = [
+ "-Wno-format-nonliteral",
+ # This is for _exit(1) in base/debug/debugger_posix.cc.
+ "-Wno-unreachable-code",
+ ]
}
libbase_sublibs = [