mirror of
https://github.com/nasa/trick.git
synced 2025-04-07 19:34:23 +00:00
Clang no longer supports -Wno-unused-but-set-variable #600
Removed the compile time flag.
This commit is contained in:
parent
9d7ba05c76
commit
8938c3b7b2
@ -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()) ;
|
||||
} ;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user