All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iptables: add noreturn attribute to exit_tryhelp()
@ 2010-02-19  2:26 Dmitry V. Levin
  2010-05-14 11:26 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2010-02-19  2:26 UTC (permalink / raw)
  To: netfilter-devel

Found by gcc -Wmissing-noreturn.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 ip6tables.c |    2 +-
 iptables.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ip6tables.c b/ip6tables.c
index e2359df..d98a66f 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -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)
diff --git a/iptables.c b/iptables.c
index 08eb134..b4b8982 100644
--- a/iptables.c
+++ b/iptables.c
@@ -237,7 +237,7 @@ enum {
 	IPT_DOTTED_MASK
 };
 
-static void
+static void __attribute__((noreturn))
 exit_tryhelp(int status)
 {
 	if (line != -1)
-- 
ldv

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iptables: add noreturn attribute to exit_tryhelp()
  2010-02-19  2:26 [PATCH] iptables: add noreturn attribute to exit_tryhelp() Dmitry V. Levin
@ 2010-05-14 11:26 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2010-05-14 11:26 UTC (permalink / raw)
  To: Dmitry V. Levin; +Cc: netfilter-devel

Dmitry V. Levin wrote:
> Found by gcc -Wmissing-noreturn.

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-14 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19  2:26 [PATCH] iptables: add noreturn attribute to exit_tryhelp() Dmitry V. Levin
2010-05-14 11:26 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.