From: Jeff King <peff@peff.net>
To: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Cc: Junio C Hamano <gitster@pobox.com>,
GIT Mailing-list <git@vger.kernel.org>
Subject: Re: [PATCH 1/6] clone: Make the 'junk_mode' symbol a file static
Date: Sat, 27 Apr 2013 19:21:25 -0400 [thread overview]
Message-ID: <20130427232124.GA13800@sigill.intra.peff.net> (raw)
In-Reply-To: <517C1B48.5090206@ramsay1.demon.co.uk>
On Sat, Apr 27, 2013 at 07:39:04PM +0100, Ramsay Jones wrote:
> Sparse issues an "'junk_mode' not declared. Should it be static?"
> warning. In order to suppress the warning, since this symbol does
> not need more than file visibility, we simply add the static
> modifier to it's declaration.
> [...]
> -enum {
> +static enum {
> JUNK_LEAVE_NONE,
Thanks. This one was done by me, and yes it should be static. I think it
is because I originally typed:
enum junk_mode {
...
};
static enum junk_mode junk_mode;
and then later dropped the named type, but forgot to keep the static
keyword.
-Peff
next prev parent reply other threads:[~2013-04-27 23:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 18:39 [PATCH 1/6] clone: Make the 'junk_mode' symbol a file static Ramsay Jones
2013-04-27 23:21 ` Jeff King [this message]
2013-04-28 1:55 ` Eric Sunshine
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=20130427232124.GA13800@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ramsay@ramsay1.demon.co.uk \
/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).