Change alert level with Qt Creator and MinGW

I am trying to find a way to change the warning level (I believe that the default is 3, and I would like to change it to 4) of my project developed using Qt Creator (1.3.0) and MinGW.

Is it possible?

+3
source share
1 answer

See the qmake manual.

I also have Qt Creator 1.3.0 and MinGW, and note    QMAKE_CXXFLAGS_WARN_ON that the variable seems to have a -Wall value. There are a number of QMAKE_CXXFLAGS variables .... They can be set / changed / adjusted in your * .pro file.

eg. in myproject.pro

win32: QMAKE_CXXFLAGS_WARN_ON + = -Wextra
+5
source

Source: https://habr.com/ru/post/1725292/


All Articles