annoying warning generated
Karsten Ballueder
karsten@phy.hw.ac.uk
Mon Aug 31 04:40:00 GMT 1998
Hello,
I'm not on this list, but I think I found something like a bug in egcs
which IMHO should be fixed.
I declare a lot of C++ classes destructors as private when using
reference counting. This helps detect errors where one deletes an
object accidentially instead of calling DecRef() to release it - which
would do a "delete this" when the reference count goes to zero.
Compiling with "-Wall" now produces endless lists of compiler warnings
about the private destructor. That's probably a good idea for most
cases, but there seems to be no possibility to switch this warning off
- that's the "bug" I was mentioning.
IMHO there really should be an option to disable this warning.
If there is and I missed it in the docs, please let me know, but I
couldn't find it.
Regards,
Karsten
--
Karsten Ballüder http://Ballueder.home.ml.org/ mailto:Ballueder@usa.net
Physics Department, Heriot-Watt University, Edinburgh, EH14 4AS, Scotland
"In a world without fences, who needs Gates?"
More information about the Gcc-bugs
mailing list