From 038022d83c2db084e23947c0392bc134122a9622 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 10 May 2011 11:17:53 +0100 Subject: [PATCH 6/6] test-service: ignore result of dbus_bus_request_name since we look at the error instead gcc 4.6 warns for this usage. --- test/test-service.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/test/test-service.c b/test/test-service.c index 8a092c2..986ef3e 100644 --- a/test/test-service.c +++ b/test/test-service.c @@ -321,7 +321,6 @@ main (int argc, char **argv) { DBusError error; - int result; DBusConnection *connection; dbus_error_init (&error); @@ -352,7 +351,7 @@ main (int argc, die ("dbus_connection_get_object_path_data() doesn't seem to work right\n"); } - result = dbus_bus_request_name (connection, "org.freedesktop.DBus.GLib.TestEchoService", + dbus_bus_request_name (connection, "org.freedesktop.DBus.GLib.TestEchoService", 0, &error); if (dbus_error_is_set (&error)) { -- 1.7.5.1