Re: unused parameters
Re: unused parameters
- Subject: Re: unused parameters
- From: Wayne Hasley <email@hidden>
- Date: Sat, 27 Sep 2003 17:12:43 -0400
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...
This eliminates the warning...
Ex.
void function(int aVariable)
{
(void) aVariable;
}
Wayne
_______________________________________________
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.