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 | |
| 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>
| -rw-r--r-- | meta/recipes-gnome/libunique/libunique/fix_for_compile_with_gcc-4.6.0.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-gnome/libunique/libunique_1.1.6.bb | 5 |
2 files changed, 39 insertions, 2 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 | |||
diff --git a/meta/recipes-gnome/libunique/libunique_1.1.6.bb b/meta/recipes-gnome/libunique/libunique_1.1.6.bb index cbf085e9f5..4f3cdb6086 100644 --- a/meta/recipes-gnome/libunique/libunique_1.1.6.bb +++ b/meta/recipes-gnome/libunique/libunique_1.1.6.bb | |||
| @@ -2,12 +2,13 @@ DESCRIPTION = "Unique is a library for writing single instance application. If y | |||
| 2 | HOMEPAGE = "http://live.gnome.org/LibUnique" | 2 | HOMEPAGE = "http://live.gnome.org/LibUnique" |
| 3 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=libunique" | 3 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=libunique" |
| 4 | 4 | ||
| 5 | SRC_URI = "${GNOME_MIRROR}/libunique/1.1/libunique-${PV}.tar.bz2" | 5 | SRC_URI = "${GNOME_MIRROR}/libunique/1.1/libunique-${PV}.tar.bz2 \ |
| 6 | file://fix_for_compile_with_gcc-4.6.0.patch" | ||
| 6 | 7 | ||
| 7 | SRC_URI[md5sum] = "7955769ef31f1bc4f83446dbb3625e6d" | 8 | SRC_URI[md5sum] = "7955769ef31f1bc4f83446dbb3625e6d" |
| 8 | SRC_URI[sha256sum] = "e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb" | 9 | SRC_URI[sha256sum] = "e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb" |
| 9 | 10 | ||
| 10 | PR = "r2" | 11 | PR = "r3" |
| 11 | 12 | ||
| 12 | DEPENDS = "glib-2.0 gtk+ dbus" | 13 | DEPENDS = "glib-2.0 gtk+ dbus" |
| 13 | 14 | ||
