[Bug 271711] lang/sbcl: fix build with clang 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 May 2023 17:52:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271711

            Bug ID: 271711
           Summary: lang/sbcl: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: krion@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: krion@FreeBSD.org
             Flags: maintainer-feedback?(krion@FreeBSD.org)

Clang 16 has a new error about incompatible function types, which shows
up when building lang/sbcl:

  bsd-os.c:285:50: error: incompatible function pointer types passing
'__siginfohandler_t *' (aka 'void (*)(int, struct __siginfo *, void *)') to
parameter of type 'interrupt_handler_t' (aka 'void (*)(int, struct __siginfo *,
struct __ucontext *)') [-Wincompati
                                                   (__siginfohandler_t *)
                                                   ^~~~~~~~~~~~~~~~~~~~~~
  ./interrupt.h:123:64: note: passing argument to parameter 'handler' here
  extern void ll_install_handler(int signal, interrupt_handler_t handler);
                                                                 ^

Indeed the __siginfohandler_t type is incompatible, but that is caused
by the cast itself, which does not seem to be good for anything. Remove
it, so the mismatch is gone.

-- 
You are receiving this mail because:
You are the assignee for the bug.