svn commit: r364500 - head/lib/libc/gen

Mateusz Guzik mjg at FreeBSD.org
Sun Aug 23 11:07:00 UTC 2020


Author: mjg
Date: Sun Aug 23 11:06:59 2020
New Revision: 364500
URL: https://svnweb.freebsd.org/changeset/base/364500

Log:
  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]

Modified:
  head/lib/libc/gen/scandir.c

Modified: head/lib/libc/gen/scandir.c
==============================================================================
--- head/lib/libc/gen/scandir.c	Sun Aug 23 11:05:26 2020	(r364499)
+++ head/lib/libc/gen/scandir.c	Sun Aug 23 11:06:59 2020	(r364500)
@@ -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


More information about the svn-src-head mailing list