• 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: Equiv. to CW: Undefined Macro in #if
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equiv. to CW: Undefined Macro in #if


  • Subject: Re: Equiv. to CW: Undefined Macro in #if
  • From: Eric Albert <email@hidden>
  • Date: Thu, 1 Jun 2006 08:55:07 -0700

On Jun 1, 2006, at 6:29 AM, Douglas Norton wrote:

Previously I have been able to build my source with both CodeWarrior and Xcode, however now my CW project is defunct and I am hoping to find an equivalent setting in Xcode or gcc.

Is there an equivalent for CW's 'Undefined Macro in #if' in Xcode 2.3 / gcc 4.0 ?

From gcc's man page:
-----
-Wundef
Warn whenever an identifier which is not a macro is encountered in
an #if directive, outside of defined. Such identifiers are
replaced with zero.
-----


From a quick glance it doesn't look like Xcode has a check box specifically for this. You might want to file a bug report to ask for one, but in the meantime you can add '-Wundef' to the "Other Warning Flags" setting.

Hope this helps,
Eric

_______________________________________________
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


  • Follow-Ups:
    • Re: Equiv. to CW: Undefined Macro in #if
      • From: Douglas Norton <email@hidden>
References: 
 >Equiv. to CW: Undefined Macro in #if (From: Douglas Norton <email@hidden>)

  • Prev by Date: Re: Codegen bug with exceptions and destructors in GCC 4.0.1
  • Next by Date: Re: Equiv. to CW: Undefined Macro in #if
  • Previous by thread: Equiv. to CW: Undefined Macro in #if
  • Next by thread: Re: Equiv. to CW: Undefined Macro in #if
  • Index(es):
    • Date
    • Thread