From efdd0c63d907f7e781880d8c15499c294cf09e3f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Jan 2017 20:52:25 +0000 Subject: [PATCH 10/16] _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 --- dbus/dbus-sysdeps-win.c | 4 ++-- 1 file 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 -- 2.11.0