diff options
author | Justine Tunney <jart@google.com> | 2017-11-17 18:27:39 -0800 |
---|---|---|
committer | Justine Tunney <jart@google.com> | 2017-11-17 18:40:05 -0800 |
commit | ac5371d13ed9dd3d19517e9008984f864af7cebf (patch) | |
tree | 9cba7860b5367ef699091527fc8521c6dfbbaf1b /BUILD | |
parent | baed06e69443613c531a3580315759c08db6667e (diff) |
Remove unhelpful build warnings
-Wno-writable-strings removes 230 "ISO C++11 does not allow conversion from
string literal to 'char *'" warnings from TensorFlow test / build output.
These happen because pyext/ sources pass string literals to Python C API data
structures, e.g. PyGetSetDef, which for some reason were designed to not have
the const qualifier.
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -24,6 +24,8 @@ COPTS = select({ "-Woverloaded-virtual", "-Wno-sign-compare", "-Wno-unused-function", + # Prevents ISO C++ const string assignment warnings for pyext sources. + "-Wno-writable-strings", ], }) |