Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Nikos Chantziaras <realnc <at> arcor.de>
Subject: Re: qmake ignores QMAKE_CXXFLAGS
Newsgroups: gmane.comp.lib.qt.general
Date: Tuesday 4th October 2011 16:32:51 UTC (over 5 years ago)
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: [email protected]
> [mailto:[email protected]
> m] On Behalf Of Nikos Chantziaras
> Sent: Tuesday, October 04, 2011 11:07 AM
> To: [email protected]
> 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
> [email protected]
> 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
>
#####################################################################################
 
CD: 3ms