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

test-mergesort conflict with stdlib.h

From
Brian Gernhardt <brian@gernhardtsoftware.com>
Date
Apr 17, 2012, 17:25 UTC
Message-ID
<E6D295C2-C35E-4ECF-990D-FCF8407C2429@gernhardtsoftware.com>
On OS X 10.7.3, I get the following error attempting to build next:
    CC test-mergesort.o
In file included from test-mergesort.c:2:
./mergesort.h:4:7: error: conflicting types for 'mergesort'
void *mergesort(void *list,
      ^
/usr/include/stdlib.h:306:6: note: previous declaration is here
int      mergesort(void *, size_t, size_t,
         ^
This appears to be due to the fact that 0db71e0: "add mergesort() for linked lists" added a mergesort implementation with a different signature than a mergesort implemented by OS X's standard library.  Perhaps git could use a less generic name like 'llist_mergesort'?
~~ Brian Gernhardt
Next: Junio C Hamano
Message 1 of 5 in “test-mergesort conflict with stdlib.h”
  1. Brian GernhardtApr 17, 2012
  2. Junio C HamanoApr 17, 2012
  3. Brian GernhardtApr 17, 2012
  4. Junio C HamanoApr 17, 2012
  5. Brian GernhardtApr 17, 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.