From ac5371d13ed9dd3d19517e9008984f864af7cebf Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Fri, 17 Nov 2017 18:27:39 -0800 Subject: 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. --- BUILD | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BUILD') diff --git a/BUILD b/BUILD index bcaf9cd5..9c8fd864 100644 --- a/BUILD +++ b/BUILD @@ -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", ], }) -- cgit v1.2.3