Compiling libunique-1.1.6 with gcc-4.6.0 gives:
uniquebackend-dbus.c: In function 'unique_backend_dbus_request_name':
uniquebackend-dbus.c:87:22: error: variable 'backend_dbus' set but not used
[-Werror=unused-but-set-variable]
uniquebackend-dbus.c: In function 'unique_backend_dbus_send_message':
uniquebackend-dbus.c:189:12: error: variable 'res' set but not used
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[5]: *** [libunique_dbus_la-uniquebackend-dbus.lo] Error 1This patch fixes
the problem:
diff -uNr libunique-1.1.6-orig/unique/dbus/uniquebackend-dbus.c
libunique-1.1.6/unique/dbus/uniquebackend-d
bus.c
--- libunique-1.1.6-orig/unique/dbus/uniquebackend-dbus.c 2009-11-01
13:15:26.000000000 -0600
+++ libunique-1.1.6/unique/dbus/uniquebackend-dbus.c 2011-06-05
12:08:55.000000000 -0500
@@ -84,7 +84,7 @@
static gboolean
unique_backend_dbus_request_name (UniqueBackend *backend)
{
- UniqueBackendDBus *backend_dbus;
+ UniqueBackendDBus __attribute__((__unused__)) *backend_dbus;
const gchar *name;
DBusGConnection *connection;
DBusGProxy *proxy;
@@ -186,7 +186,7 @@
GValueArray *data;
gchar *cmd;
gchar *resp;
- gboolean res;
+ gboolean __attribute__((__unused__)) res;
GError *error;
UniqueResponse response;
i.e. just add __attribute__((__unused__)) to the variables *backend_dbus and
res.
Suspect the same happens with book version libunique-1.1.2 but haven't tried it.
jb.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page