[Bug 268991] audio/deadbeef: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 16 Jan 2023 19:13:10 UTC

            Bug ID: 268991
           Summary: audio/deadbeef: 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: danfe@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@FreeBSD.org

During an exp-run for llvm 15 (see bug 265425), it turned out that
audio/deadbeef failed to build with clang 15:

  threading_pthread.c:57:12: error: incompatible pointer to integer conversion
returning 'pthread_t' (aka 'struct pthread *') from a function with result type
'intptr_t' (aka 'long') [-Wint-conversion]
      return tid;

This is because it is trying to implicitly convert a pthread_t into an integer.
Add a cast to suppress the warning.

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