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++
|
||||
BIN=${DESTDIR}/usr/bin
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ int main(int argc, char **argv)
|
|||
else
|
||||
{
|
||||
// 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
|
||||
|
||||
// The _GLIBCXX_DEBUG doesn't work in cygwin
|
||||
|
@ -165,7 +165,7 @@ int main(int argc, char **argv)
|
|||
<< "-Wfloat-equal "
|
||||
<< "-Wcast-qual "
|
||||
<< "-Wsign-conversion "
|
||||
<< "-Wconversion "
|
||||
// << "-Wconversion "
|
||||
<< "-g\n";
|
||||
}
|
||||
fout << "CXX=g++\n";
|
||||
|
|
Loading…
Reference in New Issue