[Telepathy-commits] [telepathy-gabble/master] conn-aliasing: nick_publish_msg_reply_cb: wrap debug code in #ifdef ENABLE_DEBUG

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Feb 27 05:56:49 PST 2009


This fixes unused variable warnings during distcheck.
---
 src/conn-aliasing.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/conn-aliasing.c b/src/conn-aliasing.c
index 242fa63..ae5ff09 100644
--- a/src/conn-aliasing.c
+++ b/src/conn-aliasing.c
@@ -439,6 +439,7 @@ nick_publish_msg_reply_cb (GabbleConnection *conn,
                            GObject *object,
                            gpointer user_data)
 {
+#ifdef ENABLE_DEBUG
   if (lm_message_get_sub_type (reply_msg) == LM_MESSAGE_SUB_TYPE_ERROR)
     {
       LmMessageNode *error_node;
@@ -455,6 +456,7 @@ nick_publish_msg_reply_cb (GabbleConnection *conn,
               gabble_xmpp_error_description (error));
         }
     }
+#endif
 
   return LM_HANDLER_RESULT_REMOVE_MESSAGE;
 }
-- 
1.5.6.5




More information about the telepathy-commits mailing list