diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-05-10 21:59:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-11 17:14:24 +0100 |
commit | b2005019523e5973b4ba7470c7ae460a95d10967 (patch) | |
tree | bc6d4441c4b7ba603617f3a3879f15132aa075c6 /meta/recipes-gnome/libunique/libunique | |
parent | e8fd633fe45ef338a45350d4414d93005a54417a (diff) | |
download | poky-b2005019523e5973b4ba7470c7ae460a95d10967.tar.gz |
libunique: Fix for compilation with gcc 4.6.0
(From OE-Core rev: 434581849c521d0a13e5be0c5a0d65c3f16ad54b)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/libunique/libunique')
-rw-r--r-- | meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch | 36 |
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 0000000000..d75de93fc2 --- /dev/null +++ b/meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Fix Following compilation errors with gcc 4.6.0 | ||
4 | |||
5 | Nitin 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 | |||
15 | Index: 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 | |||