From 5e1168fc5c28e91a93a471bfaf7d0955ba8ec7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 13 Aug 2010 21:31:04 +0200 Subject: [PATCH] dmake: removed _GLIBCXX_DEBUG because it doesn't work in cygwin. added -Wconversion --- Makefile | 2 +- tools/dmake.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3dbd83cda..4676c3b4d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CXXFLAGS=-Wall -Wextra -Wshadow -pedantic -Wno-long-long -Wfloat-equal -Wconversion -Wcast-qual -Wsign-conversion -g -D_GLIBCXX_DEBUG +CXXFLAGS=-Wall -Wextra -Wshadow -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual -Wsign-conversion -Wconversion -g CXX=g++ BIN=${DESTDIR}/usr/bin diff --git a/tools/dmake.cpp b/tools/dmake.cpp index ebd1810c8..008fc8265 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -155,6 +155,7 @@ int main(int argc, char **argv) // -Wsign-conversion : generates too many compiler warnings currently // -Wlogical-op : doesn't work on older GCC + // The _GLIBCXX_DEBUG doesn't work in cygwin fout << "CXXFLAGS=" << "-Wall " << "-Wextra " @@ -164,7 +165,8 @@ int main(int argc, char **argv) << "-Wfloat-equal " << "-Wcast-qual " << "-Wsign-conversion " - << "-g -D_GLIBCXX_DEBUG\n"; + << "-Wconversion " + << "-g\n"; } fout << "CXX=g++\n"; fout << "BIN=${DESTDIR}/usr/bin\n\n";