Nikos Chantziaras | 4 Oct 18:32 2011
Picon

Re: qmake ignores QMAKE_CXXFLAGS

QMAKE_CXXFLAGS definitely works.  So does QMAKE_CXXFLAGS_WARN_OFF (and 
QMAKE_CFLAGS_WARN_OFF for plain C files).  In my project file, I always 
do this:

   CONFIG += warn_off

   # We use warn_off to allow only default warnings, not
   # to supress them all.
   QMAKE_CXXFLAGS_WARN_OFF =
   QMAKE_CFLAGS_WARN_OFF =

Then you can specify your custom warning flags with QMAKE_CFLAGS and 
QMAKE_CXXFLAGS.

On 10/04/2011 01:04 PM, Schimkowitsch Robert wrote:
> I do not want to turn off all warnings, I've only used this as a test
> case.
>
> Or is there a way to disable #pragma warnings using CONFIG?
>
> Kind regards
>
> Robert Schimkowitsch
>
>
> -----Original Message-----
> From: qt-interest-bounces+robert.schimkowitsch=andritz.com <at> qt.nokia.com
> [mailto:qt-interest-bounces+robert.schimkowitsch=andritz.com <at> qt.nokia.co
> m] On Behalf Of Nikos Chantziaras
> Sent: Tuesday, October 04, 2011 11:07 AM
> To: qt-interest <at> qt.nokia.com
> Subject: Re: [Qt-interest] qmake ignores QMAKE_CXXFLAGS
>
> On 10/04/2011 11:50 AM, Schimkowitsch Robert wrote:
>> Hi,
>>
>> I am trying to configure my warning output for MinGW.
>>
>> I've found QMAKE_CXXFLAGS in the qmake documentation, but adding it to
>> my .pro-file does not seem to change anything.
>>
>> To test it, I've added
>> QMAKE_CXXFLAGS += -w
>> to a .pro file, which should suppress warnings.
>> It still generates warnings when building, plus I can't see the
> compile
>> flag in the "compile output". I've manually re-ran qmake witin
> Creator.
>>
>> What might I have done wrong?
>
> CONFIG += warn_off
> _______________________________________________
> Qt-interest mailing list
> Qt-interest <at> qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
> #####################################################################################
> This message and any attachments are solely for the use of the intended recipients. They may contain
privileged and/or confidential information or other information protected from disclosure. If you are
not an intended recipient, you are hereby notified that you received this email in error and that any
review, dissemination, distribution or copying of this email and any attachment is strictly
prohibited. If you have received this email in error, please contact the sender and delete the message and
any attachment from your system.
> Thank You.
>    ANDRITZ HYDRO GmbH
>    Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation
>    Firmensitz/ Registered seat: Wien
>    Firmenbuchgericht/ Court of registry: Handelsgericht Wien
>    Firmenbuchnummer/ Company registration: FN 61833 g
>    DVR: 0605077
>    UID-Nr.: ATU14756806
> #####################################################################################

Gmane