From 5a6557633729dd5f5799c4d944797c95c7fe981a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 13:38:52 +0200 Subject: bpfc: Add __noreturn attribute to exiting functions Add the __noreturn attribute to all functions which wont return but call die() themselves to exit(). Signed-off-by: Tobias Klauser --- bpfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpfc.c') diff --git a/bpfc.c b/bpfc.c index 1b29bb3..cd88d66 100644 --- a/bpfc.c +++ b/bpfc.c @@ -31,7 +31,7 @@ static const struct option long_options[] = { extern int compile_filter(char *file, int verbose, int bypass, int format); -static void help(void) +static void __noreturn help(void) { printf("\nbpfc %s, a tiny BPF compiler\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" @@ -60,7 +60,7 @@ static void help(void) die(); } -static void version(void) +static void __noreturn version(void) { printf("\nbpfc %s, a tiny BPF compiler\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" -- cgit v1.2.3-54-g00ecf