This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"
- From: corey taylor <corey dot taylor at gmail dot com>
- To: Vincent Torri <Vincent dot Torri at iecn dot u-nancy dot fr>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Sep 2005 15:21:38 -0500
- Subject: Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"
- References: <Pine.LNX.4.51.0509302204290.28395@cartan.iecn.u-nancy.fr>
- Reply-to: corey taylor <corey dot taylor at gmail dot com>
Vincent,
You understand what that warning means, don't you? You really need
to declare a virtual destructor in that case.
The warning is enabled by -Wnon-virtual-dtor and -Wall
corey
On 9/30/05, Vincent Torri <Vincent.Torri@iecn.u-nancy.fr> wrote:
>
> hello,
>
> is there a flag for g++ that removes the warning:
>
> warning: 'class Toto' has virtual functions but non-virtual destructor
>
> ?
>
> thank you
>
> Vincent Torri
>