Changing the warning level with Qt Creator and MinGW
I'm trying to find a way to change the warning level (I believe the default is 3 and I'd like to change it to 4) of my project developped using Qt Creator (1.3.0) and MinGW.
Is it possible ?开发者_JAVA技巧
See the qmake manual.
I also have Qt Creator 1.3.0 and MinGW and notice that the
QMAKE_CXXFLAGS_WARN_ON
variable appears to be set to -Wall. There are a number of QMAKE_CXXFLAGS... variables. These can be set/changed/adjusted in your *.pro file.
E.g. in myproject.pro
win32:QMAKE_CXXFLAGS_WARN_ON += -Wextra
精彩评论