This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/689: [2003-05-03] [diagnostic] this warning is not helpful: `class xxxx' only defines a private destructor and has no friend
- From: Gabriel Dos Reis <gdr at acm dot org>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nathan at gcc dot gnu dot org,jeff at elrancho dot com
- Date: Sun, 11 May 2003 12:00:16 +0200
- Subject: Re: c++/689: [2003-05-03] [diagnostic] this warning is not helpful: `class xxxx' only defines a private destructor and has no friend
- Organization: Integrable Solutions
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=689
Jeff --
I can't tell you how helpful or unhelpul that warning is.
However, g++ does provide an option to turn it on and off
-Wctor-dtor-privacy
-Wno-ctor-dtor-privacy
Maybe turning this warning on only if -Wextra is specified might be less
restrictive than the current situation. I'm going to reclassify this
PR.
Thanks,
-- Gaby