Re: unused parameters
Re: unused parameters
- Subject: Re: unused parameters
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sat, 27 Sep 2003 22:54:33 +0100
On Saturday, September 27, 2003, at 10:12 pm, Wayne Hasley wrote:
On 9/27/03 4:36 PM, "Danny Swarzman" <email@hidden> wrote:
Does anyone know how to surpress warnings about unused parameters.
CodeWarrior has a #pragma for this.
I haven't found anything about this in the docs.
I generally just cast the unused variables to void...
If you take this approach, it is common practice to write
#define UNUSED(x) ((void) (x))
...
void myfn (int param)
{
UNUSED (param);
...
just to make it clear what you are doing.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.