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]
Other format: [Raw text]

Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"


Oh, then to disable it specifically -Wno-non-virtual-dtor .

corey

On 9/30/05, corey taylor <corey.taylor@gmail.com> wrote:
> 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
> >
>


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