[Bug 272793] graphics/rawstudio: Add CFLAGS for clang16+
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272793] graphics/rawstudio: Add CFLAGS for clang16+"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272793] graphics/rawstudio: Add CFLAGS for clang16+"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272793] graphics/rawstudio: Add CFLAGS for clang16+"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Jul 2023 11:17:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272793 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=243685&action=edit 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); ^~~~~~~~~~~~~~~ /usr/local/include/gphoto2/gphoto2-context.h:92:29: note: passing argument to parameter 'func' here GPContextStatusFunc func, void *data); Adding CFLAGS+=-Wno-incompatible-function-pointer-types workarounds this. -- You are receiving this mail because: You are the assignee for the bug.