From 5efcfdc5150304f80b1ffb8b37c67c17e98a0d50 Mon Sep 17 00:00:00 2001 From: Ron Date: Sat, 27 Jun 2009 04:44:18 +0930 Subject: Add noreturn attributes to some functions that won't ever do so usage() is also made static in answer to warnings about no prototype. In __pthread_manager_event() we also have to drop the return statement, else gcc will in turn complain about a non-returning function having one. Signed-off-by: Ron Lee Signed-off-by: Mike Frysinger --- utils/ldconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/ldconfig.c b/utils/ldconfig.c index c52b170de..f6aec5c82 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -114,7 +114,7 @@ static void warnx(const char *s, ...) fprintf(stderr, "\n"); } -static void err(int errnum, const char *s, ...) +static void attribute_noreturn err(int errnum, const char *s, ...) { va_list p; @@ -783,7 +783,7 @@ void cache_print(void) } #endif -void usage(void) +static void attribute_noreturn usage(void) { fprintf(stderr, #ifdef __LDSO_CACHE_SUPPORT__ -- cgit v1.2.3