From c3edb70271b011a27f9c5e8534bd3b965c4b99f3 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Jan 2017 20:50:08 +0000 Subject: [PATCH 09/16] DBusTransport: be explicit about _dbus_auth_do_work() results This silences -Wswitch-enum. Based on part of a patch from Thomas Zimmermann. Signed-off-by: Simon McVittie --- dbus/dbus-transport.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c index b1932c32..1a9da697 100644 --- a/dbus/dbus-transport.c +++ b/dbus/dbus-transport.c @@ -749,6 +749,12 @@ _dbus_transport_try_to_authenticate (DBusTransport *transport) case DBUS_AUTH_STATE_AUTHENTICATED: /* leave as maybe_authenticated */ break; + case DBUS_AUTH_STATE_WAITING_FOR_INPUT: + case DBUS_AUTH_STATE_WAITING_FOR_MEMORY: + case DBUS_AUTH_STATE_HAVE_BYTES_TO_SEND: + case DBUS_AUTH_STATE_NEED_DISCONNECT: + case DBUS_AUTH_STATE_INVALID: + /* fall through */ default: maybe_authenticated = FALSE; } -- 2.11.0