aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Baker-Malone <jbakermalone@google.com>2019-09-26 10:57:55 -0700
committerdiegoperez <diegoperez@google.com>2020-07-15 12:35:30 +0100
commitc6f821f32ae859be48661472b544da81dc863a7f (patch)
tree3a7c5a203fa18244969c3d176e27e2029c90019a
parent0a949016241c21cfe7a0aef7c9d67a4789612bed (diff)
downloadprotobuf-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--BUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/BUILD b/BUILD
index b2df614ba..18fec96a3 100644
--- a/BUILD
+++ b/BUILD
@@ -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")