Re: ObjC in gcc 4: warning about [SomeClass class]
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