• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: -Wall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -Wall


  • Subject: Re: -Wall
  • From: Army Research Lab <email@hidden>
  • Date: Tue, 10 Jun 2008 12:50:35 -0400
  • Thread-topic: -Wall

Just wrapping this thread up...

On 6/5/08 12:08 PM, "Bryan Henry" <email@hidden> wrote:

> I get the same result with -pedantic and -Wno-import. Lots and lots of
> "Warning: #import is a GCC extension". Seems like that's definitely
> not how it should be working.
>
> Also, http://lists.apple.com/archives/objc-language/2006/Mar/msg00006.html
>
> Bryan
>
> (Sorry Sean, I always manage to hit Reply rather than Reply All for
> the list.)
>
> On Jun 5, 2008, at 10:38 AM, Sean McBride wrote:
>
>> On 6/5/08 7:44 AM, Army Research Lab said:
>>
>>> IIRC, -Wextra is not a superset of -Wall; you have to have both for
>>> to cover
>>> it all.  I suggest adding the following line in the warning flags
>>> under the
>>> 'All configurations' option in 'Configuration':
>>>
>>> -Wall -Wextra -pedantic
>>>
>>> If you are compiling Objective-C, you'll probably want to add the
>>> following:
>>>
>>> -Wno-import
>>>
>>> This turns off warnings for import statements.
>>
>> Does it work for you?
>>
>> $ gcc -Wall -Wextra -pedantic -Wno-import ~/Desktop/test2.m
>> /Users/sean/Desktop/test2.m:1:2: warning: #import is a GCC extension

As doctors say, the tests are inconclusive.  Basically, I couldn't get it to
work under gcc 4.0.1, and I couldn't get gcc 4.3.1 to compile, so I couldn't
test that.  I guess that -Wno-import is buggy.

Cem

 _______________________________________________
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

References: 
 >Re: -Wall (From: Bryan Henry <email@hidden>)

  • Prev by Date: public release of Xcode 3.1?
  • Next by Date: Re: public release of Xcode 3.1?
  • Previous by thread: Re: -Wall
  • Next by thread: Subversion Hosting
  • Index(es):
    • Date
    • Thread