gcc: removed -Wlogical-op that is not supported by old GCC

This commit is contained in:
Daniel Marjamäki 2010-03-13 08:03:30 +01:00
parent 8c91c98dc6
commit 48a63e4c35
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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";