Remove -Weffc++ from GCC
The "should be initialized in the member initialization list" is incorrectly implemented on GCC. https://stackoverflow.com/questions/14002454/can-i-ignore-the-gcc-warning-foom-bar-should-be-initialized-in-the-member-i
This commit is contained in:
@@ -7,5 +7,3 @@ QMAKE_CXXFLAGS += -Wold-style-cast
|
||||
QMAKE_CXXFLAGS += -Wnon-virtual-dtor
|
||||
|
||||
QMAKE_CXXFLAGS += -Wcast-align -Wunused -Woverloaded-virtual -Wformat=2
|
||||
|
||||
QMAKE_CXXFLAGS += -Weffc++
|
||||
|
||||
@@ -12,6 +12,8 @@ include(clang-gcc-common-switches.pri)
|
||||
|
||||
QMAKE_CXXFLAGS += -Wmost
|
||||
|
||||
QMAKE_CXXFLAGS += -Weffc++
|
||||
|
||||
#QMAKE_CXXFLAGS += -Wconversion
|
||||
#QMAKE_CXXFLAGS += -Wdouble-promotion
|
||||
#QMAKE_CXXFLAGS += -Wsign-conversion
|
||||
|
||||
@@ -7,3 +7,5 @@ QMAKE_CXXFLAGS += -Wpedantic
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
#All includes from the third-party directory will not warn.
|
||||
QMAKE_CXXFLAGS += --system-header-prefix=third-party
|
||||
|
||||
QMAKE_CXXFLAGS += -Weffc++
|
||||
|
||||
Reference in New Issue
Block a user