• 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: Showing more warnings possible in Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing more warnings possible in Xcode?


  • Subject: Re: Showing more warnings possible in Xcode?
  • From: Alex Curylo <email@hidden>
  • Date: Sat, 30 May 2009 17:38:41 -0700


On 30-May-09, at 5:31 PM, Eric Hermanson wrote:

Thanks for that list.

Regarding your choice of

	GCC_WARN_UNUSED_PARAMETER = YES

How do you get around the fact that you often get warnings for delegate methods you are forced to implement where you don't ever use given parameter(s)? Do you use a "#pragma GCC diagnostic ignored ..." to skip that warning for the given file, or do you reference all parameters in some bogus way to avoid the warning, or...?

- Eric

Reference. Specifically,

(void)parameter;

That works in every C-based compiler on every platform, and doesn't muck up block quoting/unquoting, which makes it the one true correct way far as I'm concerned.

--
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

"I suddenly found myself writing, from scratch, an ATM
 back-end that's used by a growing number of banks...
 now I get nervous using ATMs." -- Greg Weston



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Showing more warnings possible in Xcode?
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: Showing more warnings possible in Xcode? (From: Alex Curylo <email@hidden>)
 >Re: Showing more warnings possible in Xcode? (From: Eric Hermanson <email@hidden>)

  • Prev by Date: Re: Showing more warnings possible in Xcode?
  • Next by Date: Re: Several Questions
  • Previous by thread: Re: Showing more warnings possible in Xcode?
  • Next by thread: Re: Showing more warnings possible in Xcode?
  • Index(es):
    • Date
    • Thread