• 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: Thomas Lachand-Robert <email@hidden>
  • Date: Tue, 19 Oct 2004 21:08:34 +0200


Le 18 oct. 04, à 22:45, Jan E. Schotsman a écrit :

Hello list,

I would like to use the "unused parameters' warning but this causes some
problems with system callbacks.
In CodeWarrior I can either comment out the unused parameter's name or use
'pragma unused'. In Xcode neither seems to work.


Any tips?


Yes use a construct like that:

double somevar __attribute__((unused));

This has nothing to do with XCode, but with GCC. See the corresponding docs.

Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet à la chose. >> Molière, Tartuffe.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Unused parameters (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Re: Library Style -> STATIC, still linking dynamically
  • Next by Date: Dev Tools Communication
  • Previous by thread: Unused parameters
  • Next by thread: Accessing NSTextFields in cocoa
  • Index(es):
    • Date
    • Thread