diff options
author | Joe Baker-Malone <jbakermalone@google.com> | 2019-09-26 10:57:55 -0700 |
---|---|---|
committer | diegoperez <diegoperez@google.com> | 2020-07-15 12:35:30 +0100 |
commit | c6f821f32ae859be48661472b544da81dc863a7f (patch) | |
tree | 3a7c5a203fa18244969c3d176e27e2029c90019a | |
parent | 0a949016241c21cfe7a0aef7c9d67a4789612bed (diff) | |
download | protobuf-c6f821f32ae859be48661472b544da81dc863a7f.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
@@ -48,17 +48,26 @@ 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", "-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") |