]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-cleanup-sockets: Mark functions noreturn as suggested by clang
authorSimon McVittie <smcv@collabora.com>
Fri, 3 Aug 2018 14:21:53 +0000 (15:21 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 30 Aug 2018 16:39:21 +0000 (17:39 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107739

tools/dbus-cleanup-sockets.c

index 994e57edea5454c89c208e3517c938078f92e387..356c18fd4021d0e5e3da55ff7f0d124c90827668 100644 (file)
@@ -35,6 +35,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <dbus/dbus-macros.h>
+
 #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)
 {