Commit e96830ae authored by Rusty Russell's avatar Rusty Russell

asort: fix gcc warning.

parent b7c94538
...@@ -7,8 +7,8 @@ void _asort(void *base, size_t nmemb, size_t size, ...@@ -7,8 +7,8 @@ void _asort(void *base, size_t nmemb, size_t size,
{ {
#if HAVE_NESTED_FUNCTIONS #if HAVE_NESTED_FUNCTIONS
/* This gives bogus "warning: no previous prototype for ‘cmp’" /* This gives bogus "warning: no previous prototype for ‘cmp’"
* with gcc 4 with -Wmissing-prototypes. But there's no way * with gcc 4 with -Wmissing-prototypes. Hence the auto crap. */
* to predeclare it, so we lose. */ auto int cmp(const void *a, const void *b);
int cmp(const void *a, const void *b) int cmp(const void *a, const void *b)
{ {
return compar(a, b, ctx); return compar(a, b, ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment