This is the mail archive of the gcc-help@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]

Suppressing gcc warnings


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


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