[Qt-interest] warnings
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Tue Nov 9 09:16:08 CET 2010
On 2010-11-09 John John Weeks wrote:
> Seems like the options provided by CONFIG += warn_on and warn_off are
> too coarse-grained. Either I'm flooded with heaps of warnings about
> things I'm not interested in, or I get none.
>
> Is there a more nuanced way to control warnings?
Not sure whether there is a "QMake Way" to do that, but you can always pass along compiler-specific flags, such as
QMAKE_CXXFLAGS += -Wall -Woverloaded-virtual -Wno-deprecated -Wuninitialized -W...
(example for gcc)
This way you can enable/disable the warnings you'd like to see.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list