From owner-freebsd-current@FreeBSD.ORG Tue Jul 15 15:09:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E285337B401; Tue, 15 Jul 2003 15:09:53 -0700 (PDT) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B02743FB1; Tue, 15 Jul 2003 15:09:52 -0700 (PDT) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id 2C1D5450C; Wed, 16 Jul 2003 07:09:51 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id 56864450B; Wed, 16 Jul 2003 07:09:50 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id 148C61E4626; Wed, 16 Jul 2003 07:09:50 +0900 (JST) Date: Wed, 16 Jul 2003 07:09:50 +0900 Message-ID: <7mfzl74f2p.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: obrien@freebsd.org 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> User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020531 cc: Jun Kuriyama cc: Current Subject: Re: src/bin/ed/re.c: warning: declaration of `exp' shadows a global declaration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 22:09:54 -0000 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 :0: warning: shadowed declaration is here -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project