From b1ccc2ba1faba89155884b94d71d79c080f975a5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 3 Aug 2018 15:21:53 +0100 Subject: [PATCH 1/9] dbus-cleanup-sockets: Mark functions noreturn as suggested by clang Signed-off-by: Simon McVittie --- tools/dbus-cleanup-sockets.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/dbus-cleanup-sockets.c b/tools/dbus-cleanup-sockets.c index 994e57ed..356c18fd 100644 --- a/tools/dbus-cleanup-sockets.c +++ b/tools/dbus-cleanup-sockets.c @@ -35,6 +35,8 @@ #include #include +#include + #ifndef TRUE #define TRUE (1) #endif @@ -372,6 +374,7 @@ clean_dir (const char *dir) #endif /* AF_UNIX */ +static void usage (int ecode) _DBUS_GNUC_NORETURN; static void usage (int ecode) { @@ -379,6 +382,7 @@ usage (int ecode) exit (ecode); } +static void version (void) _DBUS_GNUC_NORETURN; static void version (void) { -- 2.19.0.rc1