git: 75464941dc17 - main - kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Mar 2024 01:50:47 UTC
The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=75464941dc17876af2e99ea90c687bd7df873d73 commit 75464941dc17876af2e99ea90c687bd7df873d73 Author: Jessica Clarke <jrtc27@FreeBSD.org> AuthorDate: 2024-03-16 01:50:21 +0000 Commit: Jessica Clarke <jrtc27@FreeBSD.org> CommitDate: 2024-03-16 01:50:21 +0000 kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 macOS, like Linux, does not include an outer const qualifier for its fts_open callback arguments, so -Wincompatible-function-pointer-types also picks this up and breaks the build now Clang 16 makes it an error by default. Extend the existing Linux support to fix this. MFC after: 1 week --- usr.sbin/kldxref/kldxref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index 969d07e5677a..8f3d24718211 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -745,7 +745,7 @@ usage(void) } static int -#ifdef __GLIBC__ +#if defined(__GLIBC__) || defined(__APPLE__) compare(const FTSENT **a, const FTSENT **b) #else compare(const FTSENT *const *a, const FTSENT *const *b)