maintainer-feedback requested: [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 16:07:16 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gnome (Nobody) <gnome@FreeBSD.org> for maintainer-feedback: Bug 268787: sysutils/tracker: fix build with clang 15 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268787 --- Description --- 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.