On Sep 15, 2008, at 11:24, Sean McBride wrote:
'#pragma unused' will cause some compilers to warn "unknown pragma".
Though, since this is the Cocoa list, and Cocoa is not really
portable,
I guess it doesn't matter.
There's also the convenient macro "__unused", which seems to work fine
for parameters as well as auto variables:
- (IBAction)handleButton:(id)__unused sender
{
int __unused someInt;
}
It's not portable either, though you could arrange to #define it away
for a compiler that doesn't support it.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]