summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2016-08-11 16:08:39 +0100
committerSimon McVittie <smcv@debian.org>2016-08-12 10:11:31 +0100
commit7ebe1de2187186a96946aa88d1c8457231996af4 (patch)
tree898131a499e0a07f5c42f21d9e956d01e9c499d6
parent4729b7a5f44b9531afac739625956f2fafeb0b2c (diff)
downloaddbus-7ebe1de2187186a96946aa88d1c8457231996af4.tar.gz
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 <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282 (cherry picked from commit 21d61180819c141e779d6ecf9919e62e768b6fd9)
-rw-r--r--dbus/dbus-auth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c
index f2227875..ea43ce72 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
};