Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2023 20:06:19 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: eac5d2ab2c06 - main - audio/deadbeef: fix build with clang 15
Message-ID:  <202302072006.317K6Jmr022619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim (src committer):

URL: https://cgit.FreeBSD.org/ports/commit/?id=eac5d2ab2c062e5ed4d9c67c7490eb4f1f04ecb7

commit eac5d2ab2c062e5ed4d9c67c7490eb4f1f04ecb7
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-01-07 16:20:14 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-02-07 20:05:36 +0000

    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.
    
    PR:             268991
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2023Q1
---
 audio/deadbeef/files/patch-threading__pthread.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302072006.317K6Jmr022619>