dmake: removed _GLIBCXX_DEBUG because it doesn't work in cygwin. added -Wconversion
This commit is contained in:
parent
032d2678aa
commit
5e1168fc5c
2
Makefile
2
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
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue