• 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: Clang analysis: Debug variables "never read."
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clang analysis: Debug variables "never read."


  • Subject: Re: Clang analysis: Debug variables "never read."
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 2 Oct 2009 13:52:15 -0400
  • Organization: Rogue Research Inc.

On 10/2/09 10:47 AM, Rick Mann said:

>Oh, I like __unused better.

Taste aside, casting to (void) is more portable, and works in C, C++,
and Obj-C.  It can also be used to silence compiler warnings about
unused parameters (it works with gcc, CodeWarrior, and Visual Studio,
and more).

>I wonder if clang supports it.

Dunno.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

  • Follow-Ups:
    • Re: Clang analysis: Debug variables "never read."
      • From: Quincey Morris <email@hidden>
References: 
 >Clang analysis: Debug variables "never read." (From: Fritz Anderson <email@hidden>)
 >Re: Clang analysis: Debug variables "never read." (From: Quincey Morris <email@hidden>)
 >Re: Clang analysis: Debug variables "never read." (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Clang analysis: Debug variables "never read."
  • Next by Date: Re: Doxygen generated DocSets and Quick Help
  • Previous by thread: Re: Clang analysis: Debug variables "never read."
  • Next by thread: Re: Clang analysis: Debug variables "never read."
  • Index(es):
    • Date
    • Thread