diff options
author | Ray Strode <rstrode@redhat.com> | 2015-02-19 10:07:24 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-02-19 10:09:21 -0500 |
commit | d3cd493a2d8e694c291917290553611a9ff3bbe1 (patch) | |
tree | 7c2a8faf0b622942303403259134e06c4bf7954c /libgdm | |
parent | 67c54ffc7a0e31af19b8cfcc784e203b71a0e07d (diff) | |
download | gdm-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 'libgdm')
-rw-r--r-- | libgdm/gdm-user-switching.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgdm/gdm-user-switching.c b/libgdm/gdm-user-switching.c index ebfef1c3..a195d052 100644 --- a/libgdm/gdm-user-switching.c +++ b/libgdm/gdm-user-switching.c @@ -593,5 +593,7 @@ gdm_goto_login_session_sync (GCancellable *cancellable, g_object_unref (connection); return retval; +#else + return FALSE; #endif } |