[pkg-uWSGI-devel] Bug#1098054: wip patch

Alexandre Rossi niol at zincube.net
Tue Feb 18 08:13:27 GMT 2025


Hi,

The following patch should fix it, pending testing on my side.

Thanks,

Alex


commit 1ae7f3384b8ca18f75c5ea528beca1fdf055ca77
Author: Alexandre Rossi <alexandre.rossi at gmail.com>
Date:   Tue Feb 18 08:52:22 2025 +0100

    fix build with gcc-15 and -Wincompatible-pointer-types
    
    see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098052
        https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098054

diff --git a/core/emperor.c b/core/emperor.c
index 190f6937..ae264d32 100644
--- a/core/emperor.c
+++ b/core/emperor.c
@@ -598,7 +598,7 @@ static void emperor_massive_reload(int signum) {
 }
 
 
-static void emperor_stats() {
+static void emperor_stats(int signum) {
 
 	struct uwsgi_instance *c_ui = ui->ui_next;
 
diff --git a/core/master_utils.c b/core/master_utils.c
index 27753d56..9984a2c1 100644
--- a/core/master_utils.c
+++ b/core/master_utils.c
@@ -2,7 +2,7 @@
 
 extern struct uwsgi_server uwsgi;
 
-void worker_wakeup() {
+void worker_wakeup(int sig) {
 }
 
 uint64_t uwsgi_worker_exceptions(int wid) {
diff --git a/plugins/fiber/fiber.c b/plugins/fiber/fiber.c
index ca9191eb..7caaa7ca 100644
--- a/plugins/fiber/fiber.c
+++ b/plugins/fiber/fiber.c
@@ -15,12 +15,12 @@ struct uwsgi_option fiber_options[] = {
 };
 
 
-VALUE uwsgi_fiber_request() {
+VALUE uwsgi_fiber_request(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)) {
 	async_schedule_to_req_green();
 	return Qnil;
 }
 
-VALUE rb_fiber_schedule_to_req() {
+VALUE rb_fiber_schedule_to_req(VALUE) {
 	int id = uwsgi.wsgi_req->async_id;
 
         if (!uwsgi.wsgi_req->suspended) {



More information about the pkg-uWSGI-devel mailing list