This is the mail archive of the
mailing list for the GCC project.
annoying warning generated
- To: egcs-bugs at cygnus dot com
- Subject: annoying warning generated
- From: Karsten Ballueder <karsten at phy dot hw dot ac dot uk>
- Date: Mon, 31 Aug 1998 12:39:18 +0100 (BST)
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.
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?"