Re: Equiv. to CW: Undefined Macro in #if
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