git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* test-mergesort conflict with stdlib.h
@ 2012-04-17 17:25 Brian Gernhardt
  2012-04-17 17:46 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Gernhardt @ 2012-04-17 17:25 UTC (permalink / raw)
  To: Git List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-17 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 17:25 test-mergesort conflict with stdlib.h Brian Gernhardt
2012-04-17 17:46 ` Junio C Hamano
2012-04-17 17:55   ` Brian Gernhardt
2012-04-17 18:06   ` Junio C Hamano
2012-04-17 18:09     ` Brian Gernhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).