Re: Cocoa-dev Digest, Vol 2, Issue 1504
Re: Cocoa-dev Digest, Vol 2, Issue 1504
- Subject: Re: Cocoa-dev Digest, Vol 2, Issue 1504
- From: Theo Vosse <email@hidden>
- Date: Fri, 21 Oct 2005 21:48:47 +0200
How do I use the gcc "__attribute__" (1)correctly in a Objective-C
declaration?
I use a different trick, but your mileage may vary, of course. In the
makefile or preprocessor definitions, I define "UNUSED(x)=(void)x;".
Then, in the code between the local declarations and the start of the
body, I would write
- (IBAction) test:(id)sender
{
int x;
UNUSED(sender);
/* code here */
}
Works for all C dialects and all compilers I use(d).
Theo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden