Date: Thu, 15 Jun 2023 19:37:47 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272019] graphics/ocaml-lablgl: fix build with clang 16 Message-ID: <bug-272019-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272019 Bug ID: 272019 Summary: graphics/ocaml-lablgl: 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: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org Clang 16 has a new error about incompatible function types, which shows up when building graphics/ocaml-lablgl: togl.c:820:26: error: incompatible function pointer types assigning to 'v= oid (*)(Tk_Window, Tk_ClassProcs *, ClientData)' (aka 'void (*)(struct Tk_Windo= w_ *, struct Tk_ClassProcs *, void *)') from 'void (Tk_Window, const Tk_ClassP= rocs *, ClientData)' (aka 'void (struct Tk_Window_ *, const struct Tk_ClassProcs= *, void *)') [-Wincompatible-function-pointer-types] SetClassProcsPtr =3D Tk_SetClassProcs; ^ ~~~~~~~~~~~~~~~~ This is because Tk_SetClassProcs() now takes a const Tk_ClassProcs pointer as its second parameter. Fix the SetClassProcsPtr declaration to match. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272019-7788>