From: Brian Haley <brian.haley@hp.com>
To: Dave Jones <davej@redhat.com>
Cc: trinity@vger.kernel.org
Subject: Re: [PATCH] Fix two shadow compiler warnings
Date: Fri, 15 Aug 2014 17:41:19 -0400 [thread overview]
Message-ID: <53EE7E7F.1070505@hp.com> (raw)
In-Reply-To: <20140815211816.GA2096@redhat.com>
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 ‘list_to_index’:
> > fd-files.c:216:15: warning: declaration of ‘index’ shadows a global declaration [-Wshadow]
> > CC fds.o
> > fds.c: In function ‘process_disable_fds_param’:
> > fds.c:164:38: warning: declaration of ‘optarg’ shadows a global declaration [-Wshadow]
>
> 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
prev parent reply other threads:[~2014-08-15 21:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-15 21:02 [PATCH] Fix two shadow compiler warnings Brian Haley
2014-08-15 21:18 ` Dave Jones
2014-08-15 21:41 ` Brian Haley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53EE7E7F.1070505@hp.com \
--to=brian.haley@hp.com \
--cc=davej@redhat.com \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).