Turn on specific waring as errors
-
Hi,
I have turned on warning as error option in my pro file:
QMAKE_CXXFLAGS += -WerrorBut in my QtCreator I still see some warnings like e.g.:
Included header header.h is not used directly (fix available)
Included header header.h is not used directly (fix available)How can I set that build will fail even with that?
Currently build is succeeding. -
C Christian Ehrlicher moved this topic from General and Desktop on
-
Hi,
I have turned on warning as error option in my pro file:
QMAKE_CXXFLAGS += -WerrorBut in my QtCreator I still see some warnings like e.g.:
Included header header.h is not used directly (fix available)
Included header header.h is not used directly (fix available)How can I set that build will fail even with that?
Currently build is succeeding.What you see are not comnpiler warnings but warnings from the clang analyzer. So you can't create an error for them.
-
What you see are not comnpiler warnings but warnings from the clang analyzer. So you can't create an error for them.
@Christian-Ehrlicher ok, thank you, is there any option to list all of those warning or I need go file by file manually?
-
@Christian-Ehrlicher ok, thank you, is there any option to list all of those warning or I need go file by file manually?
-
K Kaluss has marked this topic as solved on