HomeFreeBSD

x11/swaync: unbreak build with clang 15

Description

x11/swaync: unbreak build with clang 15

src/swaync.p/configModel/configModel.c:3810:46: error: incompatible integer to pointer conversion passing 'gboolean' (aka 'int') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]

g_hash_table_insert (_tmp24_, _tmp26_, json_node_get_boolean (_tmp27_));
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/glib-2.0/glib/ghash.h:73:61: note: passing argument to parameter 'value' here

gpointer        value);
                ^

src/swaync.p/configModel/configModel.c:4333:33: error: incompatible integer to pointer conversion passing 'gboolean' (aka 'int') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]

g_ptr_array_add (_tmp16_, json_node_get_boolean (_tmp17_));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/glib-2.0/glib/garray.h:198:27: note: passing argument to parameter 'data' here

gpointer          data);
                  ^

src/swaync.p/configModel/configModel.c:4342:33: error: incompatible integer to pointer conversion passing 'gint64' (aka 'long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]

g_ptr_array_add (_tmp18_, json_node_get_int (_tmp19_));
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/glib-2.0/glib/garray.h:198:27: note: passing argument to parameter 'data' here

gpointer          data);
                  ^

Reported by: pkg-fallout

Details

Provenance
jbeichAuthored on Feb 11 2023, 3:48 PM
Parents
R11:4fd0bdc67785: net/liblinphone: Fix build on HEAD
Branches
Unknown
Tags
Unknown