aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar depristo <mdepristo@google.com>2018-06-28 22:54:43 +0000
committerGravatar depristo <mdepristo@google.com>2018-06-28 22:54:43 +0000
commit2506cf5cf4da16386d8cb3908fd054452829cc6a (patch)
tree9a6b99439902704e44667ca7a5345437480fe5d4
parentf25e7edfa40c12300cf7dd3837b82841d095a79a (diff)
Remove write-strings warning from COPTs.
This change reduces the excessive warnings when compiling C++ protobufs like "external/protobuf_archive/python/google/protobuf/pyext/message.cc:2629:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]"
-rw-r--r--BUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/BUILD b/BUILD
index c21b631e..27288d94 100644
--- a/BUILD
+++ b/BUILD
@@ -43,12 +43,13 @@ COPTS = select({
"//conditions:default": [
"-DHAVE_PTHREAD",
"-Wall",
- "-Wwrite-strings",
"-Woverloaded-virtual",
"-Wno-sign-compare",
"-Wno-unused-function",
# Prevents ISO C++ const string assignment warnings for pyext sources.
+ # no-write-strings is the standard GCC flag as of at least v5.
"-Wno-writable-strings",
+ "-Wno-write-strings",
],
})