..another bug or feature ?
Moved
Unsolved
Qt Creator and other tools
-
I have "report / post unused variables " disabled . Works as expected , except
when there is a real error posted . Then the output is again cluttered with unwanted report of unused variables.Should I post a bug ?
-
Those warnings are produced by two separate things depending on where you see them; a) by the Code Model if you see the warning along with your code in the editor window and b) by the compiler if you see the warning in the Compile Output window. The options of these two are set separately. If you want to also disable it in the compile output, you can add the following to your .pro project file (I think this option is only valid for gcc, so you might want to put it inside a conditional 'unix' block):
QMAKE_CXXFLAGS += -Wno-unused-variable