Author: wdoekes
Date: Mon Aug 11 04:51:32 2014
New Revision: 420654

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420654
Log:
tcptls: Avoid compiler warning on non-dev-mode.

Modified:
    branches/1.8/main/tcptls.c

Modified: branches/1.8/main/tcptls.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/1.8/main/tcptls.c?view=diff&rev=420654&r1=420653&r2=420654
==============================================================================
--- branches/1.8/main/tcptls.c (original)
+++ branches/1.8/main/tcptls.c Mon Aug 11 04:51:32 2014
@@ -434,7 +434,12 @@
  */
 static void tcptls_stream_dtor(void *cookie)
 {
+#ifdef AST_DEVMODE
+       /* Since the ast_assert below is the only one using stream,
+        * and ast_assert is only available with AST_DEVMODE, we
+        * put this in a conditional to avoid compiler warnings. */
        struct ast_tcptls_stream *stream = cookie;
+#endif
 
        ast_assert(stream->fd == -1);
 }


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to