From: Simon McVittie Date: Thu, 11 Aug 2016 15:08:39 +0000 (+0100) Subject: Mark WaitingForOK state as unused X-Git-Tag: dbus-1.10.10~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ebe1de2187186a96946aa88d1c8457231996af4;p=thirdparty%2Fdbus.git Mark WaitingForOK state as unused It should probably be used (see #97298) but the fact that it isn't is breaking compatibility with gcc 6, so apply a quick workaround while we look into what's wrong here. Signed-off-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282 (cherry picked from commit 21d61180819c141e779d6ecf9919e62e768b6fd9) --- diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c index f2227875a..ea43ce72a 100644 --- a/dbus/dbus-auth.c +++ b/dbus/dbus-auth.c @@ -282,6 +282,9 @@ static const DBusAuthStateData client_state_need_send_auth = { static const DBusAuthStateData client_state_waiting_for_data = { "WaitingForData", handle_client_state_waiting_for_data }; +/* The WaitingForOK state doesn't appear to be used. + * See https://bugs.freedesktop.org/show_bug.cgi?id=97298 */ +_DBUS_GNUC_UNUSED static const DBusAuthStateData client_state_waiting_for_ok = { "WaitingForOK", handle_client_state_waiting_for_ok };