summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch')
-rw-r--r--meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch b/meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch
new file mode 100644
index 0000000..d75de93
--- /dev/null
+++ b/meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch
@@ -0,0 +1,36 @@
1Upstream-Status: Pending
2
3Fix Following compilation errors with gcc 4.6.0
4
5Nitin A Kamble <nitin.a.kamble@intel.com> 2011/05/10
6
7| uniquebackend-dbus.c: In function 'unique_backend_dbus_request_name':
8| uniquebackend-dbus.c:87:22: error: variable 'backend_dbus' set but not used [-Werror=unused-but-set-variable]
9| uniquebackend-dbus.c: In function 'unique_backend_dbus_send_message':
10| uniquebackend-dbus.c:189:12: error: variable 'res' set but not used [-Werror=unused-but-set-variable]
11| cc1: all warnings being treated as errors
12|
13| make[5]: *** [libunique_dbus_la-uniquebackend-dbus.lo] Error 1
14
15Index: libunique-1.1.6/unique/dbus/uniquebackend-dbus.c
16===================================================================
17--- libunique-1.1.6.orig/unique/dbus/uniquebackend-dbus.c
18+++ libunique-1.1.6/unique/dbus/uniquebackend-dbus.c
19@@ -84,7 +84,7 @@ unique_backend_dbus_register_proxy (Uniq
20 static gboolean
21 unique_backend_dbus_request_name (UniqueBackend *backend)
22 {
23- UniqueBackendDBus *backend_dbus;
24+ UniqueBackendDBus __attribute__((__unused__)) *backend_dbus;
25 const gchar *name;
26 DBusGConnection *connection;
27 DBusGProxy *proxy;
28@@ -186,7 +186,7 @@ unique_backend_dbus_send_message (Unique
29 GValueArray *data;
30 gchar *cmd;
31 gchar *resp;
32- gboolean res;
33+ gboolean __attribute__((__unused__)) res;
34 GError *error;
35 UniqueResponse response;
36