This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

annoying warning generated


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?"  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]