• 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: Techniques to suppress "unused member variable" Clang warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Techniques to suppress "unused member variable" Clang warnings?


  • Subject: Re: Techniques to suppress "unused member variable" Clang warnings?
  • From: James Bucanek <email@hidden>
  • Date: Thu, 3 Feb 2011 16:57:06 -0700

Jim Thomason <mailto:email@hidden> wrote (Thursday, February 3, 2011 3:51 PM -0600):
Could you just do something simple like explicitly assign to it in init?

-(id) init {
if (self = [super init]) {
someVariable = nil;
//continue on
}
return self;
}

Sean McBride <mailto:email@hidden> wrote (Thursday, February 3, 2011 3:55 PM -0500):
Just stick:

(void)someVariable;

somewhere.

Good suggestions. I thought of something like that, but I was hoping for something more elegant, and closer to the declaration for maintenance.


If I can't discover a better solution, I'll end up implementing this.


James Bucanek ____________________________________________________________________ Author of Professional Xcode 3 ISBN: 9780470525227 <http://www.proxcode3.com/> and Learn Objective-C for Java Developers ISBN: 9781430223696 <http://objectivec4java.com/>

_______________________________________________
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: Techniques to suppress "unused member variable" Clang warnings?
      • From: "Sean McBride" <email@hidden>
References: 
 >Re: Techniques to suppress "unused member variable" Clang warnings? (From: Jim Thomason <email@hidden>)

  • Prev by Date: Re: Techniques to suppress "unused member variable" Clang warnings?
  • Next by Date: Re: Techniques to suppress "unused member variable" Clang warnings?
  • Previous by thread: Re: Techniques to suppress "unused member variable" Clang warnings?
  • Next by thread: Re: Techniques to suppress "unused member variable" Clang warnings?
  • Index(es):
    • Date
    • Thread