• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unused parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: unused parameters
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >unused parameters (From: Danny Swarzman <email@hidden>)

  • Prev by Date: Re: unused parameters
  • Next by Date: Re: sudo from nstask
  • Previous by thread: Re: unused parameters
  • Next by thread: Re: unused parameters
  • Index(es):
    • Date
    • Thread