From b19d239323dd9f732b24ad6c95101cf7a51c4b20 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 17 Sep 2019 17:53:31 +0200 Subject: xtables_error() does not return It's a define which resolves into a callback which in turn is declared with noreturn attribute. It will never return, therefore drop all explicit exit() calls or other dead code immediately following it. Signed-off-by: Phil Sutter Acked-by: Florian Westphal --- iptables/xshared.c | 1 - 1 file changed, 1 deletion(-) (limited to 'iptables/xshared.c') diff --git a/iptables/xshared.c b/iptables/xshared.c index 36a2ec5f..5e6cd4ae 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -181,7 +181,6 @@ int command_default(struct iptables_command_state *cs, xtables_error(PARAMETER_PROBLEM, "unknown option " "\"%s\"", cs->argv[optind-1]); xtables_error(PARAMETER_PROBLEM, "Unknown arg \"%s\"", optarg); - return 0; } static mainfunc_t subcmd_get(const char *cmd, const struct subcommand *cb) -- cgit v1.2.3