Clang no longer supports -Wno-unused-but-set-variable #600

Removed the compile time flag.
This commit is contained in:
Alex Lin 2018-04-12 08:41:25 -05:00
parent 9d7ba05c76
commit 8938c3b7b2
2 changed files with 5 additions and 3 deletions

View File

@ -59,9 +59,9 @@ namespace Trick {
size_t max_len ;
StringNode * next ;
StringNode(size_t str_len) : max_len(str_len) { buffer.reserve(max_len) ; } ;
void copy( std::string &header, std::string & color_code, std::string & message ) {
void copy( std::string &header, std::string & in_color_code, std::string & message ) {
buffer.assign(header, 0, max_len) ;
buffer.append(color_code, 0, max_len - buffer.length()) ;
buffer.append(in_color_code, 0, max_len - buffer.length()) ;
buffer.append(message, 0, max_len - buffer.length()) ;
buffer.append("\033[00m", 0, max_len - buffer.length()) ;
} ;

View File

@ -169,10 +169,12 @@ sub write_makefile_swig() {
print PY_LINK_LIST "build/init_swig_modules.o\n" ;
print PY_LINK_LIST "build/top.o\n" ;
print MAKEFILE "SWIG_CFLAGS := -I../include \${PYTHON_INCLUDES} -Wno-shadow -Wno-missing-field-initializers -Wno-unused-but-set-variable
print MAKEFILE "SWIG_CFLAGS := -I../include \${PYTHON_INCLUDES} -Wno-shadow -Wno-missing-field-initializers
ifeq (\$(IS_CC_CLANG), 1)
SWIG_CFLAGS += -Wno-self-assign -Wno-sometimes-uninitialized -Wno-deprecated-register
else
SWIG_CFLAGS += -Wno-unused-but-set-variable
endif
ifndef TRICK_VERBOSE_BUILD