bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #16997] compiler warning for NSZone.m


From: Richard Frith-Macdonald
Subject: Re: [bug #16997] compiler warning for NSZone.m
Date: Wed, 5 Jul 2006 06:35:47 +0100


On 5 Jul 2006, at 00:20, Pete French wrote:

For instance, new versions of gcc added a warning about dealloc
implementations not calling [super dealloc], and I recently went
through the base library hacking in a perverse workaround to prevent
the compiler from issueing that warning.  In every single one of the

Out of interest, how does one do that ? I have one bit of my own code
which also generates that warning, and I really want to get rid of it!

if (0) [super dealloc];

That never calls the method, but the checking code in the compiler is not clever enough to realise that, so it thinks that -dealloc has been called and refrains from generating the warning.

Better would be a pragma to tell the compiler to suppress the warning, but the person who added the warning to the compiler didn't provide any such mechanism to turn it off.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]