[openbeos] Re: Open-beos-cvs digest, Vol 1 #1587 - 8 msgs

  • From: "Marcus Overhagen" <ml@xxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Fri, 16 May 2003 01:09:05 GMT

Jared Eldredge wrote:

> Ingo said:
> > 
> > Compile the first version with the usually very useful option `-
> > Wshadow' and you will get:
> > 
> > $ g++ -Wshadow tt.cpp
> > /tmp/tt.cpp: In function `int main()':
> > /tmp/tt.cpp:9: warning: declaration of `x' shadows previous local
> > 
> what does Wshadow do?

$ gcc -v --help 2>&1 | grep Wshadow
  -Wshadow                Warn when one local variable shadows another 

Marcus


Other related posts: