Created attachment 228293 [details] v1 (use "git am") devel/llvm13 as system toolchain can't build graphics/libheif. The attached workaround (?) fixes this for me. I'll file upstream PR today or tomorrow.
Created attachment 228333 [details] v2 (use "git am") Use upstream fix https://github.com/strukturag/libheif/commit/7976e1858a857e33200cd33d01689fd040de6d3d instead.
Created attachment 228334 [details] v2.1 (use "git am")
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a6e539efacf58d1ddbe9dae6c2dfb11f8946f5f2 commit a6e539efacf58d1ddbe9dae6c2dfb11f8946f5f2 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-10-19 19:39:02 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-10-19 19:45:14 +0000 graphics/libheif: fix build with clang 13 With clang 13, building this port results in a number of "variable set but not used" warnings. These have been fixed by upstream in the mean time. PR: 258814 Reported by: Evgeniy Khramtsov <evgeniy@khramtsov.org> Approved by: maintainer timeout (2 weeks) Obtained from: https://github.com/strukturag/libheif/commit/7976e1858a857e33200cd33d01689fd040de6d3d MFH: 2021Q4 graphics/libheif/Makefile | 5 +++-- graphics/libheif/distinfo | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-)