Re: src/bin/ed/re.c: warning: declaration of `exp' shadows a global declaration

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Wed, 16 Jul 2003 07:09:50 +0900
At Tue, 15 Jul 2003 11:54:06 -0700,
David O'Brien wrote:
> Much, much better if you can point to the specific GCC source code file
> where this is handled.

May this help you?


waterblue% cat exp.c 
int
main(int argc, char** argv)
{
  int exp = 5;

  return 0;
}
waterblue% cc -Wshadow -c exp.c
exp.c: In function `main':
exp.c:4: warning: declaration of `exp' shadows a global declaration
<built-in>:0: warning: shadowed declaration is here


-- 
Jun Kuriyama <kuriyama_at_imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama_at_FreeBSD.org> // FreeBSD Project
Received on Tue Jul 15 2003 - 13:09:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC