During an exp-run for llvm 15 (see bug 265425), it turned out that multimedia/mplayer failed to build with clang 15: libmpcodecs/vd_ffmpeg.c:742:24: error: incompatible integer to pointer conversion assigning to 'unsigned char *' from 'VdpVideoSurface' (aka 'unsigned int') [-Wint-conversion] mpi->planes[3] = surface; ^ ~~~~~~~ This is because clang 15 now makes the warning about this incompatible conversion into an error by default. Add a cast to suppress the warning.
Created attachment 239311 [details] multimedia/mplayer: fix build with clang 15
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4a33de10dd5bf5c8442830e89b9da08b0dff719f commit 4a33de10dd5bf5c8442830e89b9da08b0dff719f Author: Thomas Zander <riggs@FreeBSD.org> AuthorDate: 2023-01-06 23:15:56 +0000 Commit: Thomas Zander <riggs@FreeBSD.org> CommitDate: 2023-01-06 23:15:56 +0000 multimedia/mplayer: Fix build with clang 15 PR: 268789 Reported by: dim MFH: 2023Q1 multimedia/mplayer/files/patch-libmpcodecs_vd__ffmpeg.c (new) | 11 +++++++++++ 1 file changed, 11 insertions(+)
A commit in branch 2023Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=40def1889dd6dbe2e46a214b8e4265c88860bafa commit 40def1889dd6dbe2e46a214b8e4265c88860bafa Author: Thomas Zander <riggs@FreeBSD.org> AuthorDate: 2023-01-06 23:15:56 +0000 Commit: Thomas Zander <riggs@FreeBSD.org> CommitDate: 2023-01-06 23:18:11 +0000 multimedia/mplayer: Fix build with clang 15 PR: 268789 Reported by: dim MFH: 2023Q1 (cherry picked from commit 4a33de10dd5bf5c8442830e89b9da08b0dff719f) multimedia/mplayer/files/patch-libmpcodecs_vd__ffmpeg.c (new) | 11 +++++++++++ 1 file changed, 11 insertions(+)