This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Suppressing gcc warnings
- To: gcc-help at gcc dot gnu dot org
- Subject: Suppressing gcc warnings
- From: Rene Lanz <rene dot lanz at es1 dot siemens dot ch>
- Date: Tue, 13 Nov 2001 13:25:11 +0100
- Cc: trimmer at infiniconsys dot com
- Organization: Siemens Schweiz
- Reply-to: rene dot lanz at siemens dot ch
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