gcc: removed -Wlogical-op that is not supported by old GCC
This commit is contained in:
parent
8c91c98dc6
commit
48a63e4c35
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
|||
CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -g -D_GLIBCXX_DEBUG
|
||||
CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -g -D_GLIBCXX_DEBUG
|
||||
CXX=g++
|
||||
BIN=${DESTDIR}/usr/bin
|
||||
|
||||
|
@ -188,7 +188,7 @@ test/testdivision.o: test/testdivision.cpp lib/tokenize.h lib/classinfo.h lib/to
|
|||
test/testexceptionsafety.o: test/testexceptionsafety.cpp lib/tokenize.h lib/classinfo.h lib/token.h lib/checkexceptionsafety.h lib/check.h lib/settings.h lib/errorlogger.h test/testsuite.h
|
||||
$(CXX) $(CXXFLAGS) -Ilib -c -o test/testexceptionsafety.o test/testexceptionsafety.cpp
|
||||
|
||||
test/testfilelister.o: test/testfilelister.cpp test/testsuite.h lib/errorlogger.h lib/settings.h lib/filelister.h
|
||||
test/testfilelister.o: test/testfilelister.cpp test/testsuite.h lib/errorlogger.h lib/settings.h lib/filelister_unix.h lib/filelister.h
|
||||
$(CXX) $(CXXFLAGS) -Ilib -c -o test/testfilelister.o test/testfilelister.cpp
|
||||
|
||||
test/testincompletestatement.o: test/testincompletestatement.cpp test/testsuite.h lib/errorlogger.h lib/settings.h lib/tokenize.h lib/classinfo.h lib/token.h lib/checkother.h lib/check.h
|
||||
|
|
|
@ -145,8 +145,10 @@ int main(int argc, char **argv)
|
|||
std::ofstream fout("Makefile");
|
||||
|
||||
// Makefile settings..
|
||||
// TODO: add more compiler warnings. For example -Wsign-conversion
|
||||
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op ";
|
||||
// TODO: add more compiler warnings.
|
||||
// -Wsign-conversion : generates too many compiler warnings currently
|
||||
// -Wlogical-op : doesn't work on older GCC
|
||||
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual ";
|
||||
fout << (release ? "-O2 -DNDEBUG" : "-g -D_GLIBCXX_DEBUG") << "\n";
|
||||
fout << "CXX=g++\n";
|
||||
fout << "BIN=${DESTDIR}/usr/bin\n\n";
|
||||
|
|
Loading…
Reference in New Issue