File plugins-gcc15.patch of Package uwsgi

---
 plugins/pty/pty.c       |    3 ++-
 plugins/tuntap/tuntap.c |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Index: uwsgi-2.0.31/plugins/pty/pty.c
===================================================================
--- uwsgi-2.0.31.orig/plugins/pty/pty.c	2025-10-11 21:15:54.000000000 +0200
+++ uwsgi-2.0.31/plugins/pty/pty.c	2025-10-20 12:13:55.683815424 +0200
@@ -307,7 +307,8 @@
 	uwsgi_pty_setterm(0);
 
 	if (upty.uremote) {
-		signal(SIGWINCH, uwsgi_pty_winch);
+		// cast uwsgi_pty_winch() to make gcc-15 happy
+		signal(SIGWINCH, (__sighandler_t)uwsgi_pty_winch);
 		// send current terminal size
 		uwsgi_pty_winch(SIGWINCH);
 	}
Index: uwsgi-2.0.31/plugins/tuntap/tuntap.c
===================================================================
--- uwsgi-2.0.31.orig/plugins/tuntap/tuntap.c	2025-10-11 21:15:54.000000000 +0200
+++ uwsgi-2.0.31/plugins/tuntap/tuntap.c	2025-10-20 12:13:55.684261783 +0200
@@ -535,5 +535,6 @@
 	.name = "tuntap",
 	.options = uwsgi_tuntap_options,
 	.post_jail = uwsgi_tuntap_client,
-	.jail = uwsgi_tuntap_router,
+	// cast uwsgi_tuntap_router() to make gcc-15 happy
+	.jail = (void (*)(int (*)(void *), char **))uwsgi_tuntap_router,
 };
openSUSE Build Service is sponsored by