[neon/backports-noble/wayland-noble/Neon/release] src: scanner: drop redundant exit() after fail()

YaoBing Xiao null at kde.org
Sat Aug 22 05:55:34 BST 2026


Git commit 74becc87619519a06c5b646b87d2469278959fd7 by YaoBing Xiao.
Committed on 04/04/2026 at 03:56.
Pushed by carlosdem into branch 'Neon/release'.

scanner: drop redundant exit() after fail()

fail() already calls exit(), so the extra exit() is never reached.
Remove it to avoid dead code.

Signed-off-by: YaoBing Xiao <xiaoyaobing at uniontech.com>

M  +0    -1    src/scanner.c

https://invent.kde.org/neon/backports-noble/wayland-noble/-/commit/74becc87619519a06c5b646b87d2469278959fd7

diff --git a/src/scanner.c b/src/scanner.c
index cd5f7fe..8b1df32 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1224,7 +1224,6 @@ emit_stubs(struct wl_list *message_list, struct interface *interface)
 		     "interface '%s' has method named destroy "
 		     "but no destructor",
 		     interface->name);
-		exit(EXIT_FAILURE);
 	}
 
 	if (!has_destroy && strcmp(interface->name, "wl_display") != 0) {



More information about the Neon-commits mailing list