From 2ba3f59fc8044f52badb88f9697385036566b6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 9 Mar 2010 08:24:52 +0100 Subject: [PATCH] dmake, qmake: more sensitive compiler and runtime --- cli/cli.pro | 3 +-- tools/dmake.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/cli.pro b/cli/cli.pro index b71023069..3e3da246d 100644 --- a/cli/cli.pro +++ b/cli/cli.pro @@ -26,9 +26,8 @@ win32 { } # Add more strict compiling flags for GCC -# These flags are used in original (not generated by QMake) makefiles contains(QMAKE_CXX, g++) { - QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic + QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op CONFIG(debug, debug|release) { # checked STL diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 394befe2f..5ed404f17 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -142,7 +142,7 @@ int main(int argc, char **argv) // Makefile settings.. fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op "; - fout << (release ? "-O2 -DNDEBUG" : "-g") << "\n"; + fout << (release ? "-O2 -DNDEBUG" : "-g -D_GLIBCXX_DEBUG") << "\n"; fout << "CXX=g++\n"; fout << "BIN=${DESTDIR}/usr/bin\n\n"; fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml\n";