Re: 'pedantic warnings' and #import, how to reconcile?
Re: 'pedantic warnings' and #import, how to reconcile?
- Subject: Re: 'pedantic warnings' and #import, how to reconcile?
- From: Rob Rohan <email@hidden>
- Date: Thu, 15 Jun 2006 11:20:43 -0700
Actually, if I remember correctly #import was "officially" deprecated
- which is silly of course. I think it was then added as an extension
because it is useful, but the compiler probably still thinks it's
deprecated.
That's a fuzzy memory, but I think I read that in a Cocoa book - the
one by the Big Nerd Ranch guy.
On Jun 15, 2006, at 11:15 AM, Justin C. Walker wrote:
On Jun 15, 2006, at 11:06 , Matt Neuburg wrote:
On Thu, 15 Jun 2006 12:48:59 -0400, "Sean McBride" <sean@rogue-
research.com>
said:
Hi all,
I am starting a new project and looking to enable as many
warnings as
possible. I'm starting with the ones provided by Xcode's GUI.
There is
one called 'pedantic warnings' (GCC_WARN_PEDANTIC, -pedantic) but it
seems useless with Objective-C as it warns:
warning: #import is a GCC extension
haha! So I added '-Wno-import' to the 'other warning flags' but
I still
get the warnings.
Is that warning simply impossible to use with Obj-C then?
Wait - you are "looking to enable warnings", you turned on the
warnings, and
now you're complaining that you're getting the warnings? I feel
I'm missing
some piece of the puzzle here. m.
The piece of the puzzle is that "#import" is a normal part of
Objective-C, so the warning in this case is "incorrect".
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
Experience is what you get
when you don't get what you want.
--------
_______________________________________________
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