delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/17/08:41:43

Sender: tim AT mxrelay DOT g-net DOT be
Message-ID: <3BA5EE91.34C04104@falconsoft.be>
Date: Mon, 17 Sep 2001 14:37:37 +0200
From: Tim Van Holder <tim DOT vanholder AT falconsoft DOT be>
Organization: Anubex (www.anubex.com)
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.16-3 i686)
X-Accept-Language: en, nl-BE, nl
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Option -Wunused & STL
References: <Pine DOT A41 DOT 4 DOT 05 DOT 10109171134540 DOT 56990-100000 AT ieva06>
Reply-To: djgpp AT delorie DOT com

Andris Pavenis wrote:
> 
> On Mon, 17 Sep 2001, Alex Vinokur wrote:
> 
> It is so also with gcc-3.0.X after adding missing 'using namespace std;'
> and I don't expect changes, as it's not always simple to say when object
> is not only unused but really useless

Right - an object is always 'used' in the sense that its constructor is
invoked.  Even if that constructor is the default one, the object could
have subobjects that have non-trivial constructors with important side
effects.  gcc would have to inspect all subobjects to decide whether or
not the variable is really 'unused'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019