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: "Sean McBride" <email@hidden>
- Date: Thu, 15 Jun 2006 14:18:09 -0400
- Organization: Rogue Research
On 2006-06-15 11:06, Matt Neuburg said:
>>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.
:) Well, I agree that '-pedantic' is correct to warn about #import, but
since I have additionally supplied '-Wno-import' (gcc man page says:
"Inhibit warning messages about the use of #import") then should not
that one aspect of -pedantic be overridden?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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