dmake,qmake: temporarily removed -Wsign-conversion

This commit is contained in:
Daniel Marjamäki 2010-03-09 11:10:34 +01:00
parent 0597026f13
commit 2c210b8ff9
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op -g -D_GLIBCXX_DEBUG
CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -g -D_GLIBCXX_DEBUG
CXX=g++
BIN=${DESTDIR}/usr/bin

View File

@ -27,7 +27,7 @@ win32 {
# Add more strict compiling flags for GCC
contains(QMAKE_CXX, g++) {
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op
CONFIG(debug, debug|release) {
# checked STL

View File

@ -141,7 +141,8 @@ int main(int argc, char **argv)
std::ofstream fout("Makefile");
// Makefile settings..
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op ";
// TODO: add more compiler warnings. For example -Wsign-conversion
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op ";
fout << (release ? "-O2 -DNDEBUG" : "-g -D_GLIBCXX_DEBUG") << "\n";
fout << "CXX=g++\n";
fout << "BIN=${DESTDIR}/usr/bin\n\n";