From: Junio C Hamano Date: Fri, 02 Oct 2009 22:05:04 GMT Subject: Re: [PATCH] MSVC: fix build warnings Message-ID: <7v7hvd4flb.fsf@alter.siamese.dyndns.org> In-Reply-To: Michael Wookey writes: > diff --git a/builtin-branch.c b/builtin-branch.c > index 9f57992..cf6a9ca 100644 > --- a/builtin-branch.c > +++ b/builtin-branch.c > @@ -93,7 +93,7 @@ static const char *branch_get_color(enum color_branch ix) > > static int delete_branches(int argc, const char **argv, int force, int kinds) > { > - struct commit *rev, *head_rev = head_rev; I haven't tried, but the patch may break build with "gcc -Werror". This is a common and unfortunate idiom to tell the readers of the code that this initialization is unnecessary, gcc is not clever enough to notice and gives warnings, and we are squelching it, knowing what we are doing.