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@uniontech.com>
This commit is contained in:
YaoBing Xiao 2026-04-03 17:14:24 +08:00
parent e647f6304d
commit 74becc8761

View file

@ -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) {