[Bug 268787] sysutils/tracker: fix build with clang 15
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 268787] sysutils/tracker: fix build with clang 15"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Jan 2023 18:06:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268787 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: 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(+) -- You are receiving this mail because: You are the assignee for the bug.