Disable shadow warnings when compiling
This commit is contained in:
parent
a8cbbe0e16
commit
42e516582c
2
Makefile
2
Makefile
|
@ -80,7 +80,7 @@ ifeq (clang++, $(findstring clang++,$(CXX)))
|
||||||
CPPCHK_GLIBCXX_DEBUG=
|
CPPCHK_GLIBCXX_DEBUG=
|
||||||
endif
|
endif
|
||||||
ifndef CXXFLAGS
|
ifndef CXXFLAGS
|
||||||
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wshadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar $(CPPCHK_GLIBCXX_DEBUG) -g
|
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar $(CPPCHK_GLIBCXX_DEBUG) -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (g++, $(findstring g++,$(CXX)))
|
ifeq (g++, $(findstring g++,$(CXX)))
|
||||||
|
|
|
@ -301,7 +301,7 @@ int main(int argc, char **argv)
|
||||||
// "-Woverloaded-virtual " // danmar: we get fp when overloading analyseWholeProgram()
|
// "-Woverloaded-virtual " // danmar: we get fp when overloading analyseWholeProgram()
|
||||||
"-Wpacked "
|
"-Wpacked "
|
||||||
"-Wredundant-decls "
|
"-Wredundant-decls "
|
||||||
"-Wshadow "
|
"-Wno-shadow "
|
||||||
// "-Wsign-conversion "
|
// "-Wsign-conversion "
|
||||||
// "-Wsign-promo "
|
// "-Wsign-promo "
|
||||||
"-Wno-missing-field-initializers "
|
"-Wno-missing-field-initializers "
|
||||||
|
|
Loading…
Reference in New Issue