From 831b2f89d19e59cbd6f849d8143a5022d716298a Mon Sep 17 00:00:00 2001 From: zhanxw Date: Fri, 29 Nov 2013 23:37:10 -0500 Subject: [PATCH] Update ksort.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From my personal communication, I got this suggestion: using inline incorrectly: see the C99 standard ยง6.7.4. Please change to static inline (and report upstream). This also caused some clang compilation problem. --- ksort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ksort.h b/ksort.h index 0b15efe..4da7a13 100644 --- a/ksort.h +++ b/ksort.h @@ -147,7 +147,7 @@ typedef struct { tmp = *l; *l = l[i]; l[i] = tmp; ks_heapadjust_##name(0, i, l); \ } \ } \ - inline void __ks_insertsort_##name(type_t *s, type_t *t) \ + static inline void __ks_insertsort_##name(type_t *s, type_t *t) \ { \ type_t *i, *j, swap_tmp; \ for (i = s + 1; i < t; ++i) \