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]"
pull/4847/head
depristo 7 years ago
parent f25e7edfa4
commit 2506cf5cf4
  1. 3
      BUILD

@ -43,12 +43,13 @@ COPTS = select({
"//conditions:default": [ "//conditions:default": [
"-DHAVE_PTHREAD", "-DHAVE_PTHREAD",
"-Wall", "-Wall",
"-Wwrite-strings",
"-Woverloaded-virtual", "-Woverloaded-virtual",
"-Wno-sign-compare", "-Wno-sign-compare",
"-Wno-unused-function", "-Wno-unused-function",
# Prevents ISO C++ const string assignment warnings for pyext sources. # 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-writable-strings",
"-Wno-write-strings",
], ],
}) })

Loading…
Cancel
Save