• 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: "Sean McBride" <email@hidden>
  • Date: Thu, 5 Jun 2008 10:28:39 -0400
  • Organization: Rogue Research

On 6/4/08 11:10 PM, Jason Stephenson said:

>The situation being as it is, I'd recommend using the #pragma. At best,
>it works. At worst, the compiler will ignore and issue warnings.

No, at worst you'll get "warning: unknown pragma". :)  I forget which
compiler does that.

We had this discussion a year or so ago on some list or other.  The
conclusion was the most compatible thing to do is Alex's option A:

- (void)emptyMethod:(NSNotification*)notification
{
    (void)notification;
}

This works with C89, C99, Obj-C, C++, Obj-C++, gcc, CodeWarrior, and MS
compilers.

--
____________________________________________________________
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

References: 
 >-Wall (From: Stuart Malin <email@hidden>)
 >Re: -Wall (From: Stuart Malin <email@hidden>)
 >Re: -Wall (From: Stuart Malin <email@hidden>)
 >Re: -Wall (From: Jason Stephenson <email@hidden>)

  • Prev by Date: Can't add .scpt AppleScripts to Copy Bundle Resources
  • Next by Date: Re: -Wall
  • Previous by thread: Re: -Wall
  • Next by thread: Re: -Wall
  • Index(es):
    • Date
    • Thread