git: 26737de1cf1f - 2023Q3 - sysutils/tiramisu: unbreak build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Jul 2023 18:11:57 UTC
The branch 2023Q3 has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=26737de1cf1f5d2cc9583b4cdf19a6d327739d8e
commit 26737de1cf1f5d2cc9583b4cdf19a6d327739d8e
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-01 18:05:20 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-01 18:11:42 +0000
sysutils/tiramisu: unbreak build with clang 16
src/notification.vala.c:580:31: error: incompatible function pointer types passing 'void (gconstpointer, gconstpointer, gpointer)' (aka 'void (const void *, const void *, void *)') to parameter of type 'GHFunc' (aka 'void (*)(void *, void *, void *)') [-Wincompatible-function-pointer-types]
g_hash_table_foreach (hints, ___lambda4__gh_func, _data1_);
^~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/ghash.h:114:61: note: passing argument to parameter 'func' here
GHFunc func,
^
src/notification.vala.c:747:31: error: incompatible function pointer types passing 'void (gconstpointer, gconstpointer, gpointer)' (aka 'void (const void *, const void *, void *)') to parameter of type 'GHFunc' (aka 'void (*)(void *, void *, void *)') [-Wincompatible-function-pointer-types]
g_hash_table_foreach (hints, ___lambda5__gh_func, _data2_);
^~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/ghash.h:114:61: note: passing argument to parameter 'func' here
GHFunc func,
^
Reported by: pkg-fallout
(cherry picked from commit f45d33bcfa053cd8e72a9ec9d05c610d5afa270a)
---
sysutils/tiramisu/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/sysutils/tiramisu/Makefile b/sysutils/tiramisu/Makefile
index b138786fb91e..3e7af683b46c 100644
--- a/sysutils/tiramisu/Makefile
+++ b/sysutils/tiramisu/Makefile
@@ -13,6 +13,7 @@ USES= gmake gnome pkgconfig vala:build
USE_GITHUB= yes
USE_GNOME= glib20
GH_ACCOUNT= Sweets
+MAKE_ARGS= CC="${CC} ${CFLAGS}"
PLIST_FILES= bin/${PORTNAME}
post-install: