Bug 272793 - graphics/rawstudio: Add CFLAGS for clang16+
Summary: graphics/rawstudio: Add CFLAGS for clang16+
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Oleksii Samorukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-29 11:17 UTC by Rainer Hurling
Modified: 2023-07-29 11:18 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (samm)


Attachments
patch to add CFLAGS (371 bytes, patch)
2023-07-29 11:17 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling freebsd_committer freebsd_triage 2023-07-29 11:17:48 UTC
Created attachment 243685 [details]
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.