• 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: ObjC in gcc 4: warning about [SomeClass class]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC in gcc 4: warning about [SomeClass class]


  • Subject: Re: ObjC in gcc 4: warning about [SomeClass class]
  • From: "Timothy J.Wood" <email@hidden>
  • Date: Mon, 2 May 2005 10:17:48 -0700


On May 2, 2005, at 3:11 AM, Helge Hess wrote:

On 1. Mai 2005, at 17:28 Uhr, Thomas Lachand-Robert wrote:
The new objective-C compiler in GCC 4 is more nitty-picky about incorrect constructions, and I think it's a good thing in general. (I actually found a heck of missing [super dealloc]...)

Does someone know how to _disable_ the warning? I have two places where [super dealloc] is not called intentionally and its rather annoying to get warned about that ...


- (void)dealloc;
{
	... put myself on a free list ...

	return;
	[super dealloc]; // Silence warning from gcc 4.0
}

It's ugly, but this lets you choose on a call-site basis whether to 'disable' the warning. Someday, ObjC might get attributes on methods, but until then... :)

-tim

_______________________________________________
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: 
 >ObjC in gcc 4: warning about [SomeClass class] (From: Thomas Lachand-Robert <email@hidden>)

  • Prev by Date: exporting symbols problem
  • Next by Date: Re: XCode 2 availability
  • Previous by thread: Re: ObjC in gcc 4: warning about [SomeClass class]
  • Next by thread: Re: Cross-development SDK Install
  • Index(es):
    • Date
    • Thread