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.
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep