| delorie.com/archives/browse.cgi | search |
| From: | Alex Vinokur <alexvn AT bigfoot DOT com> |
| 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: | <Pine DOT SUN DOT 3 DOT 91 DOT 1010917092658 DOT 23420B-100000 AT is> |
| NNTP-Posting-Host: | gateway.scopus.co.il (194.90.203.161) |
| Mime-Version: | 1.0 |
| 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
===========================
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |