On 27.10.2017 14:13, Frédéric Fauberteau wrote: > Hi, > > Since revision 1.161 of src/sys/kern/subr_prf.c, I encounter the > following error: > /home/triaxx/netbsd8/usr/src/sys/kern/subr_lockdebug.c: In function > 'lockdebug_barrier': > /home/triaxx/netbsd8/usr/src/sys/kern/subr_lockdebug.c:683:24: error: > passing argument 2 of 'lockdebug_dump' from incompatible pointer type > [-Werror=incompatible-pointer-types] > lockdebug_dump(ld, printf); > ^ > /home/triaxx/netbsd8/usr/src/sys/kern/subr_lockdebug.c:106:13: note: > expected 'void (*)(const char *)' but argument is of type 'int (*)(const > char *)' > static void lockdebug_dump(lockdebug_t *, void (*)(const char *, ...) > > I fixed it by casting printf: > + > + lockdebug_dump(ld, (void (*)(const char *, ...))printf); > + > but it does not appear as an elegant solution... > Fixed in HEAD. printf(9) change has been reverted.
Attachment:
signature.asc
Description: OpenPGP digital signature