[Buildroot] [PATCH 1/1] package/squeezelite: fix build with gcc-15.x
Bernd Kuhls
bernd at kuhls.net
Sat Dec 6 11:34:30 UTC 2025
No autobuilder errors recorded yet.
Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
---
.../0001-ir.c-fix-build-with-gcc-15.patch | 44 +++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 package/squeezelite/0001-ir.c-fix-build-with-gcc-15.patch
diff --git a/package/squeezelite/0001-ir.c-fix-build-with-gcc-15.patch b/package/squeezelite/0001-ir.c-fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..a472d37bd5
--- /dev/null
+++ b/package/squeezelite/0001-ir.c-fix-build-with-gcc-15.patch
@@ -0,0 +1,44 @@
+From 787961d52130bd3c6c18b19218219650786e5352 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd at kuhls.net>
+Date: Sat, 6 Dec 2025 12:25:08 +0100
+Subject: [PATCH] ir.c: fix build with gcc-15
+
+ir.c: In function 'ir_init':
+ir.c:273:48: error: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
+ 273 | pthread_create(&thread, &attr, ir_thread, NULL);
+ | ^~~~~~~~~
+ | |
+ | void * (*)(void)
+In file included from squeezelite.h:300,
+ from ir.c:36:
+/home/buildroot/br/output/per-package/squeezelite/host/lib/gcc/x86_64-buildroot-linux-gnu/15.2.0/include-fixed/pthread.h:213:36:
+ note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(void)'
+ 213 | void *(*__start_routine) (void *),
+ | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
+ir.c:169:14: note: 'ir_thread' declared here
+ 169 | static void *ir_thread() {
+ | ^~~~~~~~~
+
+Upstream: https://github.com/ralph-irving/squeezelite/pull/254
+
+Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
+---
+ ir.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ir.c b/ir.c
+index 84294b6..aeea23c 100644
+--- a/ir.c
++++ b/ir.c
+@@ -166,7 +166,7 @@ static u32_t ir_key_map(const char *c, const char *r) {
+ return 0;
+ }
+
+-static void *ir_thread() {
++static void *ir_thread(void *vargp) {
+ char *code;
+
+ while (fd > 0 && LIRC(i, nextcode, &code) == 0) {
+--
+2.47.3
+
--
2.47.3
More information about the buildroot
mailing list