From 1418e793ad294f506640feed387a647ec26969cf Mon Sep 17 00:00:00 2001 From: Leo Zhang Date: Thu, 25 May 2023 10:37:24 +0800 Subject: [PATCH] build: fix some new warnings /opensource/libevent/sample/ws-chat-server.c:253:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ --- sample/ws-chat-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sample/ws-chat-server.c b/sample/ws-chat-server.c index 9f7941e4..55894d97 100644 --- a/sample/ws-chat-server.c +++ b/sample/ws-chat-server.c @@ -250,4 +250,6 @@ main(int argc, char **argv) event_free(sig_int); event_base_free(base); libevent_global_shutdown(); + + return 0; }