On Mon, Jul 14, 2025 at 10:28:17AM +0200, Eray Aslan via Postfix-users wrote:

> postfix-3.11-20250713 build fails with
> [...]
> multi_server.c: In function ‘multi_server_drain’:
> event_server.c: In function ‘event_server_drain’:
> multi_server.c:300:9: error: ‘return’ with no value, in function returning 
> non-void [-Wreturn-mismatch]
>   300 |         return;
>       |         ^~~~~~
> event_server.c:332:9: error: ‘return’ with no value, in function returning 
> non-void [-Wreturn-mismatch]
>   332 |         return;
>       |         ^~~~~~

Yes, this is an oversight not present in the nonprod release from the
same date.  The fix (patch to match the nonprod) is:

--- a/src/master/event_server.c
+++ b/src/master/event_server.c
@@ -331,3 +331,3 @@ int     event_server_drain(void)
     if (event_server_drain_was_called)
-       return;
+       return (0);
 
--- a/src/master/multi_server.c
+++ b/src/master/multi_server.c
@@ -299,3 +299,3 @@ int     multi_server_drain(void)
     if (multi_server_drain_was_called)
-       return;
+       return (0);
 

-- 
    Viktor.  🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to