Rely on no-writable-strings synonym

The -Wno-writable-strings warning flag is Clang-specific. GCC's
equivalent is -Wno-write-strings, which Clang also supports as a
synonym. So, -Wno-write strings is more compatible and there is no need
to specify both.

https://clang.llvm.org/docs/DiagnosticsReference.html#wwrite-strings
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
pull/5516/head
Keith Moyer 6 years ago
parent be1716a6d0
commit 595cb359c0
  1. 1
      BUILD

@ -54,7 +54,6 @@ COPTS = select({
"-Wno-sign-compare",
"-Wno-unused-function",
# Prevents ISO C++ const string assignment warnings for pyext sources.
"-Wno-writable-strings",
"-Wno-write-strings",
],
})

Loading…
Cancel
Save