]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Mark WaitingForOK state as unused
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 11 Aug 2016 15:08:39 +0000 (16:08 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 12 Aug 2016 09:11:31 +0000 (10:11 +0100)
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 <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282
(cherry picked from commit 21d61180819c141e779d6ecf9919e62e768b6fd9)

dbus/dbus-auth.c

index f2227875a4c28c8f04806271fcee9b4f6c01cccc..ea43ce72a4af0d2102573db21ed062bc28eeb2bd 100644 (file)
@@ -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
 };