[Qt-interest] QMAKE_CXXFLAGS += -Wno-reorder fails because qmake adds -Wall after it
Stephen Jackson
spjackson42 at gmail.com
Wed Jul 8 16:08:29 CEST 2009
On Tue, Jul 7, 2009 at 10:19 AM, Bart van Deenen wrote:
> Hi
>
> I'm getting these irritating gcc compiler warnings that I don't care about.
>
> sibling.h: In constructor ‘Sibling::Sibling(int, QHostAddress)’:
> sibling.h:13: warning: ‘Sibling::up’ will be initialized after
> sibling.h:12: warning: ‘int Sibling::retry_ct’
>
> The way to not generate these errors is with -Wno-reorder, but qmake adds a
> -Wall after my -Wno-reorder, which cancels the wanted effect.
>
> How do I tell qmake to add -Wno-reorder AFTER the -Wall it adds itself to
> the make file.
>
Instead of this
QMAKE_CXXFLAGS += -Wno-reorder
do this
QMAKE_CXXFLAGS_WARN_ON += -Wno-reorder
Regards,
Stephen Jackson
More information about the Qt-interest-old
mailing list