From: Alex Vinokur Newsgroups: comp.os.msdos.djgpp Subject: Re: Option -Wunused & STL Date: Mon, 17 Sep 2001 10:49:46 +0200 Organization: Scopus Network Technologies Lines: 31 Message-ID: <3BA5B92A.EE46A001@bigfoot.com> References: NNTP-Posting-Host: gateway.scopus.co.il (194.90.203.161) Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1000713014 10753352 194.90.203.161 (16 [79865]) X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > On Mon, 17 Sep 2001, Alex Vinokur wrote: > > > Option -Wunused : > > -Wunused Warn when a variable is unused > > > > It seems the option doesn't detect unused variables of STL-types. > > Did you try compiling with -O (that's an oh, not a zero)? %gpp -Wunused file.c // Unused variables of STL-types NOT detected %gpp -O -Wunused file.c // Unused variables of STL-types NOT detected %gpp -O file.c // Unused variables of STL-types NOT detected -- =========================== Alex Vinokur mailto:alexvn AT bigfoot DOT com mailto:alexvn AT dr DOT com http://up.to/alexvn http://go.to/alexv_math ===========================