Re: -Wall
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>) |