X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fasort%2Fasort.c;h=3f7b7fd6c792cb6fe68f2e78e873c9ad9ca3db9f;hp=cf8d8d9d196afe0613a5133b37c14c6c06ea034f;hb=f4b1f445a7b21b1599530afb897ef54efe15479d;hpb=009f261242b7e1f5482e097315c82a4185a708bf diff --git a/ccan/asort/asort.c b/ccan/asort/asort.c index cf8d8d9d..3f7b7fd6 100644 --- a/ccan/asort/asort.c +++ b/ccan/asort/asort.c @@ -7,8 +7,8 @@ void _asort(void *base, size_t nmemb, size_t size, { #if HAVE_NESTED_FUNCTIONS /* This gives bogus "warning: no previous prototype for ‘cmp’" - * with gcc 4 with -Wmissing-prototypes. But there's no way - * to predeclare it, so we lose. */ + * with gcc 4 with -Wmissing-prototypes. Hence the auto crap. */ + auto int cmp(const void *a, const void *b); int cmp(const void *a, const void *b) { return compar(a, b, ctx);