------- Comment #3 from nicola at gcc dot gnu dot org  2010-09-14 22:52 -------
If you want to use dealloc for "compatibility" with Apple Cocoa / GNUstep Base,
then you also want the warnings that dealloc needs to include a call to [super
dealloc], so I wouldn't change the compiler ;-)

You could change your code though - if you're triyng to be compatible with
Cocoa / GNUstep, then you may as well define an NSObject root class and have a
dealloc method in it ;-)

If you still want to use Object, you can add a -dealloc method to Object by
using a category:

@interface Object (dealloc)
- (void) dealloc;

(the add the implementation).  Then you can have the missing [super dealloc] in
your subclass, and the compiler won't generate any warnings.



nicola at gcc dot gnu dot org changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


Reply via email to