• 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: Thu, 05 Jun 2008 11:08:18 -0400
  • Thread-topic: -Wall

On 6/5/08 10:38 AM, "Sean McBride" <email@hidden> 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

Hmmm... that's interesting... I know I use that line at home without any
trouble, but it isn't working here.  My work gcc is 4.0.1, I'm not sure what
I have at home, I'll have to try it out there to double check.

Thanks,
Cem Karan

 _______________________________________________
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: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: -Wall
  • Next by Date: Re: -Wall
  • Previous by thread: Re: -Wall
  • Next by thread: Re: -Wall
  • Index(es):
    • Date
    • Thread