From 992bcb37c28ad1a6426df7996f297187ae3d901a Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sun, 23 Aug 2020 11:06:59 +0000 Subject: [PATCH] libc: hide alphasort_thunk behind I_AM_SCANDIR_B Should unbreak gcc build as reported by tinderbox: lib/libc/gen/scandir.c:59:12: warning: 'alphasort_thunk' declared 'static' but never defined [-Wunused-function] --- lib/libc/gen/scandir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/gen/scandir.c b/lib/libc/gen/scandir.c index 7e5bcce905f..2b8d244bcc5 100644 --- a/lib/libc/gen/scandir.c +++ b/lib/libc/gen/scandir.c @@ -56,7 +56,9 @@ void qsort_b(void *, size_t, size_t, void *); #define SELECT(x) select(x) #endif +#ifndef I_AM_SCANDIR_B static int alphasort_thunk(void *thunk, const void *p1, const void *p2); +#endif int #ifdef I_AM_SCANDIR_B