diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2017-01-17 20:52:25 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-04-07 12:08:04 +0100 |
commit | 6facca033626db32a183763e51a3c83d8496393d (patch) | |
tree | f7fa7acef4e5b05954d6906e5a75409dee27741b | |
parent | b044fa0c70ea4521185bb1c9677115372904465a (diff) |
_dbus_global_lock: move success case up into switch
This silences -Wswitch-default.
Based on part of a patch from Thomas Zimmermann.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
-rw-r--r-- | dbus/dbus-sysdeps-win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 30f084e4..e5cab351 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2717,9 +2717,9 @@ HANDLE _dbus_global_lock (const char *mutexname) case WAIT_FAILED: case WAIT_TIMEOUT: return 0; + default: + return mutex; } - - return mutex; } static |