package/docker: Fix build with gcc-15.x
PATCH 1/1 package/docker: Fix build with gcc-15.x
Add patch from Debian to fix build error with gcc-15.x
Fixes:
https://autobuild.buildroot.net/results/495/4956555fd033d43c1877e66141789bcd06aff5be/
Patch sent to fork which is used by Arch Linux:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wmdocker
Signed-off-by Bernd Kuhls <[email protected]>
--- ...tibility-explicit-fallthrough-undecl.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/docker/0001-fix-gcc-15-compatibility-explicit-fallthrough-undecl.patch
package/docker/0001-fix-gcc-15-compatibility-explicit-fallthrough-undecl.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 55054532589041e3c7b970fefaeeeee871f4f6be Mon Sep 17 00:00:00 2001 +From: Tianon Gravi <[email protected]> +Date: Wed, 25 Feb 2026 08:24:26 +0100 +Subject: [PATCH] fix gcc-15+ compatibility (explicit fallthrough, + undeclared/unused arguments) + +Downloaded from Debian: +https://sources.debian.org/src/docker/1.5-6/debian/patches/gcc-15.patch + +Upstream: https://github.com/mdomlop/wmdocker/pull/1 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + docker.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/docker.c b/docker.c +index 4cc8d78..6105ab8 100644 +--- a/docker.c ++++ b/docker.c +@@ -46,7 +46,7 @@ void signal_handler(int signal) + } + + +-void parse_cmd_line() ++void parse_cmd_line(int argc, char **argv) + { + int i; + gboolean help = FALSE; +@@ -283,6 +283,7 @@ void event_loop() + case ReparentNotify: + if (e.xany.window == win) /* reparented to us */ + break; ++ /* fallthrough */ + case UnmapNotify: + case DestroyNotify: + for (it = icons; it; it = g_slist_next(it)) { +-- +2.47.3 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot