This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: annoying warning: class Foo only defines private ctor/dtor
- To: yotam_medini at avanticorp dot com
- Subject: Re: annoying warning: class Foo only defines private ctor/dtor
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 02 Oct 1998 00:54:27 -300
- Cc: egcs-bugs at cygnus dot com, jiangwei at avanticorp dot com
- References: <199810011614.JAA14569@telaviv.avanticorp.com>
Yotam Medini <yotam@avanticorp.com> writes:
> I suggest to add a condition for issuing warnings:
> warning: `class Foo' only defines a private destructor and has no friends
> warning: `class Foo' only defines private constructors and has no friends
> that the class also does not have public static methods.
Fixed in the latest snapshot.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil