Re: Removing a compiler warning
Re: Removing a compiler warning
- Subject: Re: Removing a compiler warning
- From: Jörn Salewski <email@hidden>
- Date: Sun, 01 Feb 2004 01:26:53 +0100
am 01.02.2004 1:03 Uhr schrieb Greg Hulands unter
email@hidden:
>
Hi,
>
In an old project I have just started to bring up to date for panther I
>
have a convention in the dealloc method to return
The dealloc method to override returns void, nothing else.
>
[super dealloc].
This is not only your convention, but everybody does so, since calling
[super dealloc] is explained in the documentation of the dealloc message
(NSObject) as being mandatory in subclasses (of NSObject):
"the subclass method should incorporate superclass versions of dealloc
through a message to super"
>
This
>
is in every class, so it is generating a lot of warnings.
What sort of warnings. Could you give us a quote?
>
Is there a
>
way to suppress this warning in GCC 3.3?
>
Generally one shouldn't suppress warnings but remedy their cause.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.