Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/squeezelite: fix build with gcc-15.x
@ 2025-12-06 11:34 Bernd Kuhls
  2026-02-04 16:53 ` Thomas Petazzoni via buildroot
  2026-02-13 19:36 ` Thomas Perale via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2025-12-06 11:34 UTC (permalink / raw)
  To: buildroot; +Cc: Hiroshi Kawashima

No autobuilder errors recorded yet.

Signed-off-by: Bernd Kuhls <bernd@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@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@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

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-13 19:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-06 11:34 [Buildroot] [PATCH 1/1] package/squeezelite: fix build with gcc-15.x Bernd Kuhls
2026-02-04 16:53 ` Thomas Petazzoni via buildroot
2026-02-13 19:36 ` Thomas Perale via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox