diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-09-05 14:15:49 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-09-05 14:17:08 +0100 |
commit | 8fe58ffe12fe675e9f3a065efa33fd50d273adff (patch) | |
tree | f509e59ccb74b3b8b846a4619d99ec9bd1ac6af1 /gio/gdbusdaemon.c | |
parent | d99653f6fec1bede269887fd67ca445f50cc2847 (diff) |
gdbusdaemon: Fix unused variable warning
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Helps: #1767
Diffstat (limited to 'gio/gdbusdaemon.c')
-rw-r--r-- | gio/gdbusdaemon.c | 6 |
1 files 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) { |