From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8160 invoked by alias); 30 Sep 2005 20:21:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8095 invoked by uid 22791); 30 Sep 2005 20:21:40 -0000 Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.195) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 30 Sep 2005 20:21:40 +0000 Received: by zproxy.gmail.com with SMTP id z6so2330nzd for ; Fri, 30 Sep 2005 13:21:39 -0700 (PDT) Received: by 10.36.108.12 with SMTP id g12mr1309965nzc; Fri, 30 Sep 2005 13:21:38 -0700 (PDT) Received: by 10.37.22.44 with HTTP; Fri, 30 Sep 2005 13:21:38 -0700 (PDT) Message-ID: <2e393d080509301321u29449cd8v6cd32cb2492522e4@mail.gmail.com> Date: Fri, 30 Sep 2005 20:21:00 -0000 From: corey taylor Reply-To: corey taylor To: Vincent Torri Subject: Re: flag for removing warning message "warning: 'class Toto' has virtual functions but non-virtual destructor" Cc: gcc-help@gcc.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-SW-Source: 2005-09/txt/msg00234.txt.bz2 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 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 >