diff options
author | Joe Baker-Malone <jbakermalone@google.com> | 2019-09-26 10:57:55 -0700 |
---|---|---|
committer | Joe Baker-Malone <jbakermalone@google.com> | 2019-09-27 11:20:45 -0700 |
commit | 310b7d2b45743c368049bdb62f6182278b2c3f3a (patch) | |
tree | dfa70b6cbcdc8dff0b38670993779e94b767d52d | |
parent | 3bdd5c126b01a151714a2825c91cb0c782cb8c5a (diff) | |
download | protobuf-310b7d2b45743c368049bdb62f6182278b2c3f3a.tar.gz |
Disable some overly-verbose warnings
Also build with -std=c++11, which is required when building for android.
Test: shouldn't affect build output
Bug: 141461148
Change-Id: I1a1be361f4abf4bbe4a82087317f8db44f2fd751
-rw-r--r-- | BUILD | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -44,8 +44,13 @@ MSVC_COPTS = [ "/wd4996", # The compiler encountered a deprecated declaration. ] -COPTS = select({ - ":msvc" : MSVC_COPTS, +COPTS = [ + "-Wno-c++98-compat", + "-Wno-c++98-compat-pedantic", + "-Wno-reserved-id-macro", + "-Wno-sign-conversion", +] + select({ + ":msvc": MSVC_COPTS, "//conditions:default": [ "-DHAVE_PTHREAD", "-DHAVE_ZLIB", @@ -53,9 +58,13 @@ COPTS = select({ "-Woverloaded-virtual", "-Wno-sign-compare", "-Wno-unused-function", + "-Wno-zero-as-null-pointer-constant", # Prevents ISO C++ const string assignment warnings for pyext sources. "-Wno-write-strings", ], +}) + select({ + ":android": ["-std=c++11"], + "//conditions:default": [], }) load(":compiler_config_setting.bzl", "create_compiler_config_setting") |