Skip to contentSkip to conversation

iptables: add noreturn attribute to exit_tryhelp()

PATCH Applied Dmitry V. Levin 2 participants 2 messages Feb 19, 2010 – May 14, 2010 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables: add noreturn attribute to exit_tryhelp()

Found by gcc -Wmissing-noreturn.

---
 ip6tables.c |    2 +-
 iptables.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
ip6tables.c +1 -1
index e2359df..d98a66f 100644
@@ -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
index 08eb134..b4b8982 100644
@@ -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
#1 lore raw
Quoted 1 line · Dmitry V. Levin

Found by gcc -Wmissing-noreturn.

Applied, thanks.