Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 957
Jérôme Avatar asked Oct 17 '25 13:10

Jérôme


1 Answers

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
like image 176
Dave C Avatar answered Oct 20 '25 08:10

Dave C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!