iptables: add noreturn attribute to exit_tryhelp()
PATCH 1/1 iptables: add noreturn attribute to exit_tryhelp()
Found by gcc -Wmissing-noreturn.
Signed-off-by Dmitry V. Levin <[email protected]>
--- ip6tables.c | 2 +- iptables.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
ip6tables.c +1 -1
@@ -224,7 +224,7 @@ proto_to_name(u_int8_t proto, int nolookup)return NULL ; } -static void +static void __attribute__((noreturn))exit_tryhelp (int status) {if (line !=-1 )
iptables.c +1 -1
@@ -237,7 +237,7 @@ enum { IPT_DOTTED_MASK }; -static void +static void __attribute__((noreturn))exit_tryhelp (int status) {if (line !=-1 )
Signature · 1 line
ldv
Patrick McHardy
AppliedQuoted 1 line · Dmitry V. Levin
Found by gcc -Wmissing-noreturn.
Applied, thanks.