Mail Archives: djgpp/2001/09/17/05:04:58
On Mon, 17 Sep 2001, Alex Vinokur wrote:
>
>
> 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
>
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
Andris
- Raw text -