Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How do I disable specific warnings in Qt Creator?
me-me last edited by
I recently started using QtCreator. I cannot find a definitive and complete answer to the question: how do I disable specific warnings in Qt? (For instance, I want to disable the warning: '/*' within block comment [-Wcomment].
(I don't have the choice of fixing the code itself - it's legacy code).
...is not conclusive for me. What is the right procedure? Should I do this in the .pro file with...
QMAKE_CXXFLAGS += "something-something"
...or should I do it in a settings dialog somewhere? If so, which one, and how do I get to it?
(Also, note that I am not familiar with terms like "-Wno-old-style-cast" - and assuming this is the right approach, where can I find a list of all the options?)
Please keep in mind that I am new to Qt and so I don't automatically have all the contextual knowledge, so please be specific :)
Thanks in advance!
Hi and welcome to devnet,
As the other topic you link discusses, are you talking about the code model warnings or compiler warnings when building your code ?