anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / libunique / 1.1.6-compiler-warnings.patch
blobf47e66267d50ae616e04d38af065d512a7d522e2
1 From 9df132a70d54b768a8e1d0335d24b85ac9b3fb76 Mon Sep 17 00:00:00 2001
2 From: Emmanuele Bassi <ebassi@linux.intel.com>
3 Date: Sun, 27 Mar 2011 08:42:22 +0000
4 Subject: Remove compiler warnings
6 (cherry picked from commit f791ed16b19dddc7fbaf90d8f797520e67883021)
8 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
9 ---
10 diff --git a/unique/dbus/uniquebackend-dbus.c b/unique/dbus/uniquebackend-dbus.c
11 index 3ae1bed..69faa00 100644
12 --- a/unique/dbus/uniquebackend-dbus.c
13 +++ b/unique/dbus/uniquebackend-dbus.c
14 @@ -84,7 +84,6 @@ unique_backend_dbus_register_proxy (UniqueBackendDBus *backend_dbus)
15 static gboolean
16 unique_backend_dbus_request_name (UniqueBackend *backend)
18 - UniqueBackendDBus *backend_dbus;
19 const gchar *name;
20 DBusGConnection *connection;
21 DBusGProxy *proxy;
22 @@ -97,8 +96,6 @@ unique_backend_dbus_request_name (UniqueBackend *backend)
23 if (!connection)
24 return FALSE;
26 - backend_dbus = UNIQUE_BACKEND_DBUS (backend);
28 retval = TRUE;
29 name = unique_backend_get_name (backend);
30 g_assert (name != NULL);
31 @@ -207,10 +204,14 @@ unique_backend_dbus_send_message (UniqueBackend *backend,
32 cmd, data, time_,
33 &resp,
34 &error);
35 - if (error)
36 + if (!res)
38 - g_warning ("Error while sending message: %s", error->message);
39 - g_error_free (error);
40 + if (error)
41 + {
42 + g_warning ("Error while sending message: %s", error->message);
43 + g_error_free (error);
44 + }
46 g_free (cmd);
48 return UNIQUE_RESPONSE_INVALID;
50 cgit v0.9