Bug 268817 - audio/deadbeef: fix build with clang 15
Summary: audio/deadbeef: fix build with clang 15
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-07 16:22 UTC by Dimitry Andric
Modified: 2023-01-07 16:22 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
audio/deadbeef: fix build with clang 15 (1.22 KB, patch)
2023-01-07 16:22 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2023-01-07 16:22:20 UTC
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 supress the warning.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-01-07 16:22:38 UTC
Created attachment 239335 [details]
audio/deadbeef: fix build with clang 15