Re: #pragma doesn't
Re: #pragma doesn't
- Subject: Re: #pragma doesn't
- From: "Sean McBride" <email@hidden>
- Date: Tue, 5 Jan 2010 17:47:24 -0500
- Organization: Rogue Research Inc.
On 12/23/09 8:21 PM, Charlie Dickman said:
> According to the documentation #pragma unused (iVar) is supposed to
>suppress any unused variable warning for iVar but it doesn't. Anybody
>know what gives?
The most portable way to suppress the unused waring is the following:
- (IBAction)handleButton:(id)inSender
{
(void)inSender;
...
}
This works in C, C++, Obj-C, CodeWarrior, gcc, clang, Visual Studio,
etc., etc.
--
____________________________________________________________
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