Disabled the -Wconversion. There are too many compiler warnings currently when using it.
This commit is contained in:
parent
e1d6320a55
commit
f476cc12f8
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
CXXFLAGS=-Wall -Wextra -Wshadow -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual -Wsign-conversion -Wconversion -g
|
CXXFLAGS=-Wall -Wextra -Wshadow -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual -Wsign-conversion -g
|
||||||
CXX=g++
|
CXX=g++
|
||||||
BIN=${DESTDIR}/usr/bin
|
BIN=${DESTDIR}/usr/bin
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ int main(int argc, char **argv)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO: add more compiler warnings.
|
// TODO: add more compiler warnings.
|
||||||
// -Wsign-conversion : generates too many compiler warnings currently
|
// -Wconversion : generates too many compiler warnings currently
|
||||||
// -Wlogical-op : doesn't work on older GCC
|
// -Wlogical-op : doesn't work on older GCC
|
||||||
|
|
||||||
// The _GLIBCXX_DEBUG doesn't work in cygwin
|
// The _GLIBCXX_DEBUG doesn't work in cygwin
|
||||||
|
@ -165,7 +165,7 @@ int main(int argc, char **argv)
|
||||||
<< "-Wfloat-equal "
|
<< "-Wfloat-equal "
|
||||||
<< "-Wcast-qual "
|
<< "-Wcast-qual "
|
||||||
<< "-Wsign-conversion "
|
<< "-Wsign-conversion "
|
||||||
<< "-Wconversion "
|
// << "-Wconversion "
|
||||||
<< "-g\n";
|
<< "-g\n";
|
||||||
}
|
}
|
||||||
fout << "CXX=g++\n";
|
fout << "CXX=g++\n";
|
||||||
|
|
Loading…
Reference in New Issue