FreeBSD Bugzilla – Attachment 239509 Details for
Bug 268991
audio/deadbeef: fix build with clang 15
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
audio/deadbeef: fix build with clang 15
audio__deadbeef-fix-clang15-build-1.diff (text/plain), 1.22 KB, created by
Dimitry Andric
on 2023-01-16 19:14:11 UTC
(
hide
)
Description:
audio/deadbeef: fix build with clang 15
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-01-16 19:14:11 UTC
Size:
1.22 KB
patch
obsolete
>commit 524aa848c1f0ca4bf1e578ee39e45c41facf57ad >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Sat Jan 7 17:20:14 2023 +0100 > > audio/deadbeef: fix build with clang 15 > > 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. > >diff --git a/audio/deadbeef/files/patch-threading__pthread.c b/audio/deadbeef/files/patch-threading__pthread.c >new file mode 100644 >index 000000000000..af7e3a83cced >--- /dev/null >+++ b/audio/deadbeef/files/patch-threading__pthread.c >@@ -0,0 +1,11 @@ >+--- threading_pthread.c.orig 2016-06-19 11:26:18 UTC >++++ threading_pthread.c >+@@ -54,7 +54,7 @@ thread_start (void (*fn)(void *ctx), void *ctx) { >+ fprintf (stderr, "pthread_attr_destroy failed: %s\n", strerror (s)); >+ return 0; >+ } >+- return tid; >++ return (intptr_t)tid; >+ } >+ >+ intptr_t
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268991
: 239509