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

Re: [PATCH] builtin/commit.c: fix type warnings from gcc and sparse

From
Jeff King <peff@peff.net>
Date
Aug 29, 2014, 18:44 UTC
Message-ID
<20140829184435.GA29456@peff.net>
In-Reply-To
<5400AC05.9060900@ramsay1.demon.co.uk>
On Fri, Aug 29, 2014 at 05:36:21PM +0100, Ramsay Jones wrote:
Show 7 quoted lines
> On 32-bit platforms (only), gcc and sparse both issue warnings
> about the type of the pointer expression passed as the third
> argument to find_commit_header().  In order to suppress the
> warnings, we simply change the type of the 'len' variable to
> size_t.
> 
> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>

Thanks, this looks good to me. I think I just switched between size_t and "unsigned long" during the development and forgot to tweak this spot.

> If you need to re-roll your 'jk/commit-author-parsing' series, could
> you please squash this into the equivalent of commit 95b5989
> ("determine_author_info(): reuse parsing functions", 27-08-2014).

I don't think I have any other reason to re-roll at this point. I'm happy to have this on top, or it can be squashed into the second from the top (95b5989) if we want to keep the history cleaner.

I'm also happy to re-roll just for this, but my impression is that is not really any easier on Junio than just squashing a patch in.

-Peff
Previous: Ramsay JonesNext: Junio C Hamano
Message 2 of 3 in “builtin/commit.c: fix type warnings from gcc and sparse”
  1. builtin/commit.c: fix type warnings from gcc and sparseRamsay Jones, Aug 29, 2014
  2. Jeff KingAug 29, 2014
  3. Junio C HamanoAug 29, 2014

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.