• 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: Quincey Morris <email@hidden>
  • Date: Fri, 2 Oct 2009 10:14:56 -0700

On Oct 2, 2009, at 09:57, Fritz Anderson wrote:

Okay, in principle, I don't know that _all_ warnings flag _intentional_ non-uses of a variable. So what's the best way for me to mark up the intentional uses so they don't clutter the results?

There's always "__unused", assuming it's recognized by the analyzer:

	int __unused errorCode = [self doSomethingComplicated: localStuff];


_______________________________________________ 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: Rick Mann <email@hidden>
References: 
 >Clang analysis: Debug variables "never read." (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Clang analysis: Debug variables "never read."
  • Next by Date: Re: Clang analysis: Debug variables "never read."
  • Previous by thread: Re: Clang analysis: Debug variables "never read."
  • Next by thread: Re: Clang analysis: Debug variables "never read."
  • Index(es):
    • Date
    • Thread