From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Haley Subject: Re: [PATCH] Fix two shadow compiler warnings Date: Fri, 15 Aug 2014 17:41:19 -0400 Message-ID: <53EE7E7F.1070505@hp.com> References: <1408136559-13716-1-git-send-email-brian.haley@hp.com> <20140815211816.GA2096@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20140815211816.GA2096@redhat.com> Sender: trinity-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: Dave Jones Cc: trinity@vger.kernel.org On 08/15/2014 05:18 PM, Dave Jones wrote: > On Fri, Aug 15, 2014 at 05:02:39PM -0400, Brian Haley wrote: > > CC fd-files.o > > fd-files.c: In function =E2=80=98list_to_index=E2=80=99: > > fd-files.c:216:15: warning: declaration of =E2=80=98index=E2=80=99= shadows a global declaration [-Wshadow] > > CC fds.o > > fds.c: In function =E2=80=98process_disable_fds_param=E2=80=99: > > fds.c:164:38: warning: declaration of =E2=80=98optarg=E2=80=99 sha= dows a global declaration [-Wshadow] >=20 > ugh, what gcc is that with ? > It seems 4.9.1 is smart enough to figure out that isn't a problem. My old 12.04.5 LTS system: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) -Brian