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

Re: [PATCH 0/9] Some more sparse patches

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Apr 11, 2011, 18:21 UTC
Message-ID
<4DA34699.5080200@ramsay1.demon.co.uk>
In-Reply-To
<4D9EB61B.6010302@gmail.com>
Stephen Boyd wrote:
> Yeah I was sitting on a few of these since I didn't have the time or
> effort to sort them out. Plus I have to wade through all the warnings
> that ULONG_MAX and LONG_MAX causes on my 64 bit system causing me to
> miss some things. Thanks for picking it up.

I've been thinking of getting a new laptop soon; when I do, I'll have to face this myself. Until then I'm firmly in 32-bit land, so I'm afraid that I can't help :-(

Show 9 quoted lines
> I pulled these patches down and gave them a test. It looks good to me,
> except I see this when I check http.c:
> 
> $ make http.sp
>     SP http.c
> builtin:1:9: warning: preprocessor token GIT_HTTP_USER_AGENT redefined
> builtin:1:9: this was the original definition
> 
> Any ideas?

Hmm, sorry no. I'm not seeing this on any of my platforms. On Linux and Cygwin sparse is silent, and on MinGW (which has NO_CURL defined BTW) I see a few legitimate warnings, thus:

    $ make http.sp
        SP http.c
    http.c:806:25: warning: expression using sizeof on a function
    http.c:815:25: warning: expression using sizeof on a function
    http.c:1139:9: warning: expression using sizeof on a function
    http.c:1303:9: warning: expression using sizeof on a function

Again, these warnings are legit (they relate to an insane "inline" optimization macro which uses sizeof on a function pointer).

ATB, Ramsay Jones

Previous: Stephen Boyd
Message 3 of 3 in “Some more sparse patches”
  1. 0/9 Some more sparse patchesRamsay Jones, Apr 7, 2011
  2. Stephen BoydApr 8, 2011
  3. Ramsay JonesApr 11, 2011

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.