dmake: removed _GLIBCXX_DEBUG because it doesn't work in cygwin. added -Wconversion

This commit is contained in:
Daniel Marjamäki 2010-08-13 21:31:04 +02:00
parent 032d2678aa
commit 5e1168fc5c
2 changed files with 4 additions and 2 deletions

View File

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

View File

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