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: Douglas Norton <email@hidden>
- Date: Thu, 1 Jun 2006 17:19:18 +0100
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 ?
On 1 Jun 2006, at 16:55, Eric Albert wrote:
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.
Excellent, this appears to be exactly what I was after.
radr://4569949
Douglas
_______________________________________________
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