瀏覽代碼

Mark game_mode_context_loop as 'noreturn'

The function contains the main-loop of the daemon and will indeed
never return.
Christian Kellner 6 年之前
父節點
當前提交
c34186be07
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/dbus_messaging.h

+ 1 - 1
daemon/dbus_messaging.h

@@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
 /**
 /**
  * Run the main D-BUS loop "forever"
  * 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
  * Inhibit the screensaver