git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] checkout: squelch "'mode' may be used uninitialized in this function" warning

From
Jeff King <peff@peff.net>
Date
May 8, 2012, 20:26 UTC
Message-ID
<20120508202649.GA15502@sigill.intra.peff.net>
In-Reply-To
<slrnjq4p8c.i00.dsp@experimentalworks.net>
On Thu, May 03, 2012 at 10:59:24AM +0000, David Soria Parra wrote:
> Any update on this patch? Is it going to maint?
I doubt it:
Show 10 quoted lines
> > diff --git a/builtin/checkout.c b/builtin/checkout.c
> > index 84d3eb3..6b8bf31 100644
> > --- a/builtin/checkout.c
> > +++ b/builtin/checkout.c
> > @@ -157,7 +157,7 @@ static int checkout_merged(int pos, struct checkout *state)
> >  	unsigned char sha1[20];
> >  	mmbuffer_t result_buf;
> >  	unsigned char threeway[3][20];
> > -	unsigned mode;
> > +	unsigned mode = mode;

What is this based on? This has been fixed since 335c6e4 (checkout_merged(): squelch false warning from some gcc, 2011-12-15), which was in v1.7.8.2.

-Peff
Previous: David Soria Parra
Message 3 of 3 in “checkout: squelch "'mode' may be used uninitialized in this function" warning”
  1. checkout: squelch "'mode' may be used uninitialized in this function" warningdsp@php.net, Apr 30, 2012
  2. David Soria ParraMay 3, 2012
  3. Jeff KingMay 8, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.