• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I suppress the warning about 'statement with no effect'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I suppress the warning about 'statement with no effect'


  • Subject: Re: How do I suppress the warning about 'statement with no effect'
  • From: "D.Walsh" <email@hidden>
  • Date: Thu, 24 Feb 2005 04:20:53 -0500
  • Mta-interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com

If I recall correctly yes, I think it's either
-undefined suppress
or
-no-undefined

-- Dale

On Feb 23, 2005, at 13:46, Chris Espinosa wrote:

On Feb 22, 2005, at 7:55 PM, Justin Walker wrote:


On Feb 22, 2005, at 15:19, Kevin Hoyt wrote:


Hi all,

Is there a compiler flag to suppress the warning about statements with no

effect?


Don't know, but the documentation might tell you.  You can find gcc doc in

  <file:///Developer/Documentation/DeveloperTools>


Another good way is to select your target, do Get Info, select the Build tab, set the popup in the header of the first column to "GNU C/C++ Compiler > Warnings", then enter a search string into the search bubble at the bottom of the inspector.  The warnings are fairly thoroughly documented in the Details box in that tab I didn't find anything particularly appropriate for this warning.  The closest thing I found was the "expression evaluates with no assignment" clause of the -W flag.


Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How do I suppress the warning about 'statement with no effect' (From: Kevin Hoyt <email@hidden>)
 >Re: How do I suppress the warning about 'statement with no effect' (From: Justin Walker <email@hidden>)
 >Re: How do I suppress the warning about 'statement with no effect' (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Changing to Single Window mode
  • Next by Date: Help with Java, Xcode, CodeSense, java docs, WebObjects, etc.
  • Previous by thread: Re: How do I suppress the warning about 'statement with no effect'
  • Next by thread: .h file not found? XCode 1.5
  • Index(es):
    • Date
    • Thread