* flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"
@ 2005-09-30 20:16 Vincent Torri
2005-09-30 20:21 ` corey taylor
0 siblings, 1 reply; 4+ messages in thread
From: Vincent Torri @ 2005-09-30 20:16 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"
2005-09-30 20:16 flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor" Vincent Torri
@ 2005-09-30 20:21 ` corey taylor
2005-09-30 20:25 ` corey taylor
0 siblings, 1 reply; 4+ messages in thread
From: corey taylor @ 2005-09-30 20:21 UTC (permalink / raw)
To: Vincent Torri; +Cc: gcc-help
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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"
2005-09-30 20:21 ` corey taylor
@ 2005-09-30 20:25 ` corey taylor
2005-09-30 20:58 ` Vincent Torri
0 siblings, 1 reply; 4+ messages in thread
From: corey taylor @ 2005-09-30 20:25 UTC (permalink / raw)
To: Vincent Torri; +Cc: gcc-help
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
> >
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor"
2005-09-30 20:25 ` corey taylor
@ 2005-09-30 20:58 ` Vincent Torri
0 siblings, 0 replies; 4+ messages in thread
From: Vincent Torri @ 2005-09-30 20:58 UTC (permalink / raw)
To: corey taylor; +Cc: gcc-help
On Fri, 30 Sep 2005, corey taylor wrote:
> Oh, then to disable it specifically -Wno-non-virtual-dtor .
that's what i wanted :)
>
> 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.
> >
i understand it ;)
thank you
Vincent Torri
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-30 20:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-30 20:16 flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor" Vincent Torri
2005-09-30 20:21 ` corey taylor
2005-09-30 20:25 ` corey taylor
2005-09-30 20:58 ` Vincent Torri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).