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

Re: [PATCH] remote-curl.c: Fix a compiler warning

From
Jeff King <peff@peff.net>
Date
Nov 21, 2012, 19:34 UTC
Message-ID
<20121121193453.GD16280@sigill.intra.peff.net>
In-Reply-To
<50AD26C3.2090407@ramsay1.demon.co.uk>
On Wed, Nov 21, 2012 at 07:08:51PM +0000, Ramsay Jones wrote:
Show 13 quoted lines
> In particular, gcc issues an "'gzip_size' might be used uninitialized"
> warning (-Wuninitialized). However, this warning is a false positive,
> since the 'gzip_size' variable would not, in fact, be used uninitialized.
> In order to suppress the warning, we simply initialise the variable to
> zero in it's declaration.
> 
> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
> ---
> 
> Hi Junio,
> 
> This is on top of next. (commit df126e108: "remote-curl: hoist gzip
> buffer size to top of post_rpc", 31-10-2012).

Thanks. I meant to apply this during my tenure as maintainer, but it slipped through the cracks.

-Peff
Previous: Ramsay Jones
Message 2 of 2 in “remote-curl.c: Fix a compiler warning”
  1. remote-curl.c: Fix a compiler warningRamsay Jones, Nov 21, 2012
  2. Jeff KingNov 21, 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.