]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15
authorJessica Clarke <jrtc27@FreeBSD.org>
Sat, 16 Mar 2024 01:50:21 +0000 (01:50 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sat, 16 Mar 2024 01:50:21 +0000 (01:50 +0000)
commit75464941dc17876af2e99ea90c687bd7df873d73
treeb13111bafa64892172a365f620b91826f5c85d18
parentd8c84215d7675b7940412122b6d7026bd193c9b5
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