[asterisk-commits] wdoekes: branch 1.8 r420654 - /branches/1.8/main/tcptls.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 11 04:51:40 CDT 2014


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);
 }




More information about the asterisk-commits mailing list