diff options
author | Hidehiko Abe <hidehiko@chromium.org> | 2018-12-15 00:36:33 +0900 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-16 16:26:17 -0800 |
commit | 4941951a83ba810f01efcc0914d59b64171db084 (patch) | |
tree | 8de5f7780b438a74bd836529129c131a587efc1a /BUILD.gn | |
parent | 6ddb2e07a8f13d0a25c4458110b0cbf125a48d7c (diff) | |
download | platform_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.gn | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 = [ |