Suppressing gcc warnings

Rene Lanz rene.lanz@es1.siemens.ch
Fri Nov 2 05:21:00 GMT 2001


Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

I am particularily interessted how the following, and in this case unnessesary
warning, can be suppressed:

warning: `class X' only defines a private destructor and has no
> friends 
> example use: a class with reference counting
> class X
> {
> public:
> X();
> int AddRef();
> int Release();
> private:
> ~X();
> }

Thanks,

Rene



More information about the Gcc-help mailing list