Date: Sun, 12 Feb 2023 00:59:03 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: d9ead0ea74a3 - main - x11/swaync: unbreak build with clang 15 Message-ID: <202302120059.31C0x3OH071110@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=d9ead0ea74a3b3b269a73eaa6847e388d6b32765 commit d9ead0ea74a3b3b269a73eaa6847e388d6b32765 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-02-11 15:48:53 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-02-12 00:50:58 +0000 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 --- x11/swaync/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/x11/swaync/Makefile b/x11/swaync/Makefile index 4633c4e41317..1edcd0765599 100644 --- a/x11/swaync/Makefile +++ b/x11/swaync/Makefile @@ -22,6 +22,7 @@ GH_ACCOUNT= ErikReider GH_PROJECT= SwayNotificationCenter SHEBANG_FILES= build-aux/meson/postinstall.py GLIB_SCHEMAS= org.erikreider.swaync.gschema.xml +CFLAGS+= -Wno-error=int-conversion # https://github.com/ErikReider/SwayNotificationCenter/issues/209 OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT=MANPAGES
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302120059.31C0x3OH071110>