[svn-commits] wdoekes: branch 11 r420655 - in /branches/11: ./ main/tcptls.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Aug 11 04:52:41 CDT 2014
Author: wdoekes
Date: Mon Aug 11 04:52:36 2014
New Revision: 420655
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420655
Log:
tcptls: Avoid compiler warning on non-dev-mode.
........
Merged revisions 420654 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/main/tcptls.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/main/tcptls.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/tcptls.c?view=diff&rev=420655&r1=420654&r2=420655
==============================================================================
--- branches/11/main/tcptls.c (original)
+++ branches/11/main/tcptls.c Mon Aug 11 04:52:36 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 svn-commits
mailing list