summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2011-04-07 16:10:45 +0100
committerDavid Laban <david.laban@collabora.co.uk>2011-04-07 16:31:06 +0100
commit07752aa0ebb0a1ecc68d6a10c20e749f18bf9aef (patch)
tree6f69f84057b456288e15f6303d4eae1e32c038d3
parenta36dd1fec168abf1924757aeba7124172b9a79f5 (diff)
make distcheck pass.distcheck
Fixes error: "unused variable ‘attr_uri’" in distcheck. (attr_uri is only used in a DEBUG)
-rw-r--r--wocky/wocky-xmpp-reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wocky/wocky-xmpp-reader.c b/wocky/wocky-xmpp-reader.c
index 17cbbda..a70d1c8 100644
--- a/wocky/wocky-xmpp-reader.c
+++ b/wocky/wocky-xmpp-reader.c
@@ -439,7 +439,9 @@ handle_stream_open (
*/
const gchar *attr_name = (const gchar *) attributes[i];
const gchar *attr_prefix = (const gchar *) attributes[i+1];
+#ifdef ENABLE_DEBUG
const gchar *attr_uri = (const gchar *) attributes[i+2];
+#endif
gsize value_len = attributes[i+4] - attributes[i+3];
gchar *attr_value = g_strndup (
(const gchar *) attributes[i+3], value_len);