From c34186be078cb68267a3b692181a4a4bd22c615b Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 21 Mar 2019 13:53:11 +0100 Subject: [PATCH] Mark game_mode_context_loop as 'noreturn' The function contains the main-loop of the daemon and will indeed never return. --- daemon/dbus_messaging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/dbus_messaging.h b/daemon/dbus_messaging.h index f2f65dc..d02fb1c 100644 --- a/daemon/dbus_messaging.h +++ b/daemon/dbus_messaging.h @@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE. /** * Run the main D-BUS loop "forever" */ -void game_mode_context_loop(GameModeContext *context); +void game_mode_context_loop(GameModeContext *context) __attribute__((noreturn)); /** * Inhibit the screensaver