git: 9dc57dd478b1 - main - sysutils/tracker: fix build with clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Jan 2023 18:05:01 UTC
The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=9dc57dd478b1a87e34dfac04274646e907296818 commit 9dc57dd478b1a87e34dfac04274646e907296818 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-01-06 16:02:07 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-01-06 18:03:58 +0000 sysutils/tracker: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that sysutils/tracker failed to build with clang 15: src/tracker-store/tracker-store.p/tracker-resources.c:1685:14: error: incompatible pointer to integer conversion assigning to 'gint' (aka 'int') from 'gconstpointer' (aka 'const void *') [-Wint-conversion] subject_id = _tmp1_; ^ ~~~~~~ This is because in this vala-generated C code, the glib hash table iterator code always returns pointers, even for integer keys. However, vala is inflexible in the C expressions it generates to store the outcome. Suppress -Wint-conversion to get rid of the compile error. PR: 268787 Approved by: tcberner (maintainer) MFH: 2023Q1 --- sysutils/tracker/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/sysutils/tracker/Makefile b/sysutils/tracker/Makefile index 9bb4bb43419c..8a46426eb5a8 100644 --- a/sysutils/tracker/Makefile +++ b/sysutils/tracker/Makefile @@ -35,6 +35,7 @@ GLIB_SCHEMAS= org.freedesktop.Tracker.DB.gschema.xml \ org.freedesktop.Tracker.enums.xml \ org.freedesktop.Tracker.gschema.xml BINARY_ALIAS= python3=${PYTHON_CMD} +CFLAGS+= -Wno-int-conversion PLIST_SUB= LIBVER=0.304.0