dmake,qmake: temporarily removed -Wsign-conversion
This commit is contained in:
parent
0597026f13
commit
2c210b8ff9
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op -g -D_GLIBCXX_DEBUG
|
||||
CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -g -D_GLIBCXX_DEBUG
|
||||
CXX=g++
|
||||
BIN=${DESTDIR}/usr/bin
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ win32 {
|
|||
|
||||
# Add more strict compiling flags for GCC
|
||||
contains(QMAKE_CXX, g++) {
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op
|
||||
|
||||
CONFIG(debug, debug|release) {
|
||||
# checked STL
|
||||
|
|
|
@ -141,7 +141,8 @@ int main(int argc, char **argv)
|
|||
std::ofstream fout("Makefile");
|
||||
|
||||
// Makefile settings..
|
||||
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op ";
|
||||
// TODO: add more compiler warnings. For example -Wsign-conversion
|
||||
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op ";
|
||||
fout << (release ? "-O2 -DNDEBUG" : "-g -D_GLIBCXX_DEBUG") << "\n";
|
||||
fout << "CXX=g++\n";
|
||||
fout << "BIN=${DESTDIR}/usr/bin\n\n";
|
||||
|
|
Loading…
Reference in New Issue