Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2023 18:10:59 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: f45d33bcfa05 - main - sysutils/tiramisu: unbreak build with clang 16
Message-ID:  <202307011810.361IAxAV050153@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=f45d33bcfa053cd8e72a9ec9d05c610d5afa270a

commit f45d33bcfa053cd8e72a9ec9d05c610d5afa270a
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:10:44 +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
---
 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307011810.361IAxAV050153>