From 8fe58ffe12fe675e9f3a065efa33fd50d273adff Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 5 Sep 2019 14:15:49 +0100 Subject: [PATCH] gdbusdaemon: Fix unused variable warning Signed-off-by: Philip Withnall Helps: #1767 --- gio/gdbusdaemon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c index e03d7aabd..7ae55ece8 100644 --- a/gio/gdbusdaemon.c +++ b/gio/gdbusdaemon.c @@ -1465,10 +1465,11 @@ filter_function (GDBusConnection *connection, gpointer user_data) { Client *client = user_data; - const char *types[] = {"invalid", "method_call", "method_return", "error", "signal" }; if (0) - g_printerr ("%s%s %s %d(%d) sender: %s destination: %s %s %s.%s\n", + { + const char *types[] = {"invalid", "method_call", "method_return", "error", "signal" }; + g_printerr ("%s%s %s %d(%d) sender: %s destination: %s %s %s.%s\n", client->id, incoming? "->" : "<-", types[g_dbus_message_get_message_type (message)], @@ -1479,6 +1480,7 @@ filter_function (GDBusConnection *connection, g_dbus_message_get_path (message), g_dbus_message_get_interface (message), g_dbus_message_get_member (message)); + } if (incoming) {