Re: Showing more warnings possible in Xcode?
Re: Showing more warnings possible in Xcode?
- Subject: Re: Showing more warnings possible in Xcode?
- From: Graham Cox <email@hidden>
- Date: Sat, 30 May 2009 13:22:08 +1000
On 30/05/2009, at 1:13 PM, Eric Hermanson wrote:
Is there a way to tune xCode so that it warns you of these types of
potential problems (and more)? The Java development environment
I've been using for the past several years (Jetbrains IDEA) has
unbelievably fantastic code-editing and compile-time warning systems
that allow you to show a myriad of situations as warnings (some are
user definable). Is there a way to do this in xCode, or at least
set some flags to get more verbose warnings (especially those that
can prevent "dumb" mistakes)?
In your project's build settings, scroll down to "Other Warning
Flags", and paste this lot in:
-Wall -Wcast-align -Wchar-subscripts -Wextra -Wextra-tokens -Wformat=2
-Wmissing-field-initializers -Wpointer-arith -Wshadow -Wswitch-default
-Wundef -Wwrite-strings
I'm not immediately sure what they all do, but that's what I compile
with (cleanly).
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden