Unsolved How to set a warning and an error flag
-
I have two related issues (I use latest Qt and Qt creator: updated this morning).
- I would like to temporarily disable all the warnings of one type from the code annotations: in many cases I get annotations saying: "-Wdeprecated-declarations". But I could not find where and how to insert this option to disable display of this kind of warning
- From a different contest I read that Clang has a -Werror=uninitalized flag that issues an error, whenever it finds an unitialized variable. Maybe this is just another flag to be used as the one in issue 1) above?
Thank anyone that helps.
-
-
For compiler warning flags, you must edit the
.pro
file (QMAKE_CXXFLAGS
). -
For editing warning flags: Tools > Options... > Code Model > Clang Code Model > Manage... button.
-