summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-19 10:07:24 -0500
committerRay Strode <rstrode@redhat.com>2015-02-19 10:09:21 -0500
commitd3cd493a2d8e694c291917290553611a9ff3bbe1 (patch)
tree7c2a8faf0b622942303403259134e06c4bf7954c /common
parent67c54ffc7a0e31af19b8cfcc784e203b71a0e07d (diff)
downloadgdm-d3cd493a2d8e694c291917290553611a9ff3bbe1.tar.gz
user-switching: Make sure all exit paths have return values
The openSUSE Build Service raises a flag for [ 55s] I: Program returns random data in a function [ 55s] E: gdm no-return-in-nonvoid-function gdm-common.c:850 [ 55s] E: gdm no-return-in-nonvoid-function gdm-user-switching.c:597 This can happen when CONSOLEKIT is disabled (As is newly the case) and LOGING_RUNNING would return false. Based on a patch by Dominique Leuenberger https://bugzilla.gnome.org/show_bug.cgi?id=744787
Diffstat (limited to 'common')
-rw-r--r--common/gdm-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/gdm-common.c b/common/gdm-common.c
index 4017313b..effd4bc7 100644
--- a/common/gdm-common.c
+++ b/common/gdm-common.c
@@ -846,6 +846,8 @@ gdm_goto_login_session (GError **error)
#ifdef WITH_CONSOLE_KIT
return goto_login_session_for_ck (connection, error);
+#else
+ return FALSE;
#endif
}