[Telepathy-commits] [telepathy-gabble/master] GabbleJingleSession: wrap debug output in #ifdef ENABLE_DEBUG
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Feb 27 05:57:35 PST 2009
This fixes an unused variable warning when disabling debug, e.g. in
distcheck.
---
src/jingle-session.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/jingle-session.c b/src/jingle-session.c
index d7e9711..47328c4 100644
--- a/src/jingle-session.c
+++ b/src/jingle-session.c
@@ -746,8 +746,10 @@ _each_content_accept (GabbleJingleSession *sess, GabbleJingleContent *c,
g_object_get (c, "state", &state, NULL);
if (state != JINGLE_CONTENT_STATE_SENT)
{
+#ifdef ENABLE_DEBUG
const gchar *name = lm_message_node_get_attribute (content_node, "name");
DEBUG ("ignoring content \"%s\"s acceptance for content not in SENT state", name);
+#endif
return;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list