[Bug 268789] multimedia/mplayer: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Jan 2023 20:00:04 UTC

            Bug ID: 268789
           Summary: multimedia/mplayer: fix build with clang 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: riggs@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(riggs@FreeBSD.org)
          Assignee: riggs@FreeBSD.org

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.

You are receiving this mail because:
You are the assignee for the bug.