Date: Sat, 29 Jul 2023 11:17:48 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272793] graphics/rawstudio: Add CFLAGS for clang16+ Message-ID: <bug-272793-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272793 Bug ID: 272793 Summary: graphics/rawstudio: Add CFLAGS for clang16+ Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: samm@FreeBSD.org Reporter: rhurlin@FreeBSD.org Flags: maintainer-feedback?(samm@FreeBSD.org) Assignee: samm@FreeBSD.org Created attachment 243685 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243685&action= =3Dedit patch to add CFLAGS On 14.0-CURRENT (clang16) compiling RawStudio gives the following error: rs-tethered-shooting.c:1178:51: error: incompatible function pointer types passing 'void (GPContext *, const char *, struct __va_list_tag *, void *)' = (aka 'void (struct _GPContext *, const char *, struct __va_list_tag *, void *)')= to parameter of type 'GPContextErrorFunc' (aka 'void (*)(struct _GPContext *, const char *, void *)') [-Wincompatible-function-pointer-types] gp_context_set_error_func (tether_info->context, ctx_error_func, tether_info); ^~~~~~~~~~~~~~ /usr/local/include/gphoto2/gphoto2-context.h:90:28: note: passing argument = to parameter 'func' here GPContextErrorFunc func, void *data); ^ rs-tethered-shooting.c:1179:52: error: incompatible function pointer types passing 'void (GPContext *, const char *, struct __va_list_tag *, void *)' = (aka 'void (struct _GPContext *, const char *, struct __va_list_tag *, void *)')= to parameter of type 'GPContextStatusFunc' (aka 'void (*)(struct _GPContext *, const char *, void *)') [-Wincompatible-function-pointer-types] gp_context_set_status_func (tether_info->context, ctx_status_func, tether_info);=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~ /usr/local/include/gphoto2/gphoto2-context.h:92:29: note: passing argument = to parameter 'func' here GPContextStatusFunc func, void *data); Adding CFLAGS+=3D-Wno-incompatible-function-pointer-types workarounds this. --=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-272793-7788>