Date: Wed, 16 Jul 2003 07:09:50 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> To: obrien@freebsd.org Cc: Current <freebsd-current@freebsd.org> Subject: Re: src/bin/ed/re.c: warning: declaration of `exp' shadows a global declaration Message-ID: <7mfzl74f2p.wl@black.imgsrc.co.jp> In-Reply-To: <20030715185406.GA12119@dragon.nuxi.com> References: <7madbg60b1.wl@black.imgsrc.co.jp> <20030715075429.M34004@beagle.fokus.fraunhofer.de> <20030715185406.GA12119@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@imgsrc.co.jp> // IMG SRC, Inc.
<kuriyama@FreeBSD.org> // FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mfzl74f2p.wl>
