From: Simon McVittie Date: Fri, 3 Aug 2018 14:21:53 +0000 (+0100) Subject: dbus-cleanup-sockets: Mark functions noreturn as suggested by clang X-Git-Tag: dbus-1.13.8~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28ca69d896ef1a9414c03794da6690d073fe7d03;p=thirdparty%2Fdbus.git dbus-cleanup-sockets: Mark functions noreturn as suggested by clang Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107739 --- diff --git a/tools/dbus-cleanup-sockets.c b/tools/dbus-cleanup-sockets.c index 994e57ede..356c18fd4 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) {