[Qt-interest] qmake "-=" operator on the command line

Thiago Macieira thiago at kde.org
Sun May 29 18:08:38 CEST 2011


On Sunday, 29 de May de 2011 17:28:26 Nikos Chantziaras wrote:
> Is the following supposed to work?
> 
>    qmake CONFIG-=warn_off myproject.pro
> 
> Because it doesn't.  "+=" works fine, it's only "-=" that doesn't.

You have to be more precise. When you say "it doesn't work", we don't know 
exactly what you meant.

In this case, I'm going to guess that you wanted to enable warnings (by 
removing the disable-warnings option). And warnings were still not enabled.

However, the command you ran probably works just fine. It's your expectation of 
what it does that is incorrect. I'm sure qmake removed any "warn_off" 
configuration that was active. The questions you have to ask are:

1) at what point is any "warn_off" introduced, relative to the processing of 
the command-line? before, after or never?

2) could it be that the warnings are disabled because nothing enables it? 
Removing an option that resets to the default when the default is already 
active is a no-op.

For more information, run:
	qmake -d -d CONFIG-=warn_off myproject.pro

And search for "warn_off" in the output. You'll be able to answer both 
questions.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110529/2ad5ff03/attachment.bin 


More information about the Qt-interest-old mailing list