views:

264

answers:

1

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 ?

+2  A: 

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_CXX_FLAGS_WARN_ON += -Wextra
Dave C
Thanks ! For the record, here are the flags I've set :QMAKE_CXXFLAGS_WARN_ON += -Wconversion –Wsign-conversionAnd here is the flag I sometimes add to have warnings considered errors :QMAKE_CXXFLAGS_WARN_ON += -Wconversion –Wsign-conversion -Werror
Jérôme