diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-07-25 12:50:34 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 08:55:34 -0500 |
commit | 7317059a87e559a6e01be718a2713d3b2a0d6a7f (patch) | |
tree | 73c53f9e8e158897310e45ab24c91688e9a71d53 /libraries/libunique/libunique-1.1.6-compiler-warnings.patch | |
parent | 6672028785495935b5380fc24d38c3fa09372087 (diff) | |
download | slackbuilds-7317059a87e559a6e01be718a2713d3b2a0d6a7f.tar.gz |
libraries/libunique: Fixed build with gcc >= 4.6 and glib >= 2.31.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libunique/libunique-1.1.6-compiler-warnings.patch')
-rw-r--r-- | libraries/libunique/libunique-1.1.6-compiler-warnings.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libraries/libunique/libunique-1.1.6-compiler-warnings.patch b/libraries/libunique/libunique-1.1.6-compiler-warnings.patch new file mode 100644 index 0000000000..f47e66267d --- /dev/null +++ b/libraries/libunique/libunique-1.1.6-compiler-warnings.patch @@ -0,0 +1,50 @@ +From 9df132a70d54b768a8e1d0335d24b85ac9b3fb76 Mon Sep 17 00:00:00 2001 +From: Emmanuele Bassi <ebassi@linux.intel.com> +Date: Sun, 27 Mar 2011 08:42:22 +0000 +Subject: Remove compiler warnings + +(cherry picked from commit f791ed16b19dddc7fbaf90d8f797520e67883021) + +Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com> +--- +diff --git a/unique/dbus/uniquebackend-dbus.c b/unique/dbus/uniquebackend-dbus.c +index 3ae1bed..69faa00 100644 +--- a/unique/dbus/uniquebackend-dbus.c ++++ b/unique/dbus/uniquebackend-dbus.c +@@ -84,7 +84,6 @@ unique_backend_dbus_register_proxy (UniqueBackendDBus *backend_dbus) + static gboolean + unique_backend_dbus_request_name (UniqueBackend *backend) + { +- UniqueBackendDBus *backend_dbus; + const gchar *name; + DBusGConnection *connection; + DBusGProxy *proxy; +@@ -97,8 +96,6 @@ unique_backend_dbus_request_name (UniqueBackend *backend) + if (!connection) + return FALSE; + +- backend_dbus = UNIQUE_BACKEND_DBUS (backend); +- + retval = TRUE; + name = unique_backend_get_name (backend); + g_assert (name != NULL); +@@ -207,10 +204,14 @@ unique_backend_dbus_send_message (UniqueBackend *backend, + cmd, data, time_, + &resp, + &error); +- if (error) ++ if (!res) + { +- g_warning ("Error while sending message: %s", error->message); +- g_error_free (error); ++ if (error) ++ { ++ g_warning ("Error while sending message: %s", error->message); ++ g_error_free (error); ++ } ++ + g_free (cmd); + + return UNIQUE_RESPONSE_INVALID; +-- +cgit v0.9 |