Author: wdoekes
Date: Mon Aug 11 04:53:29 2014
New Revision: 420656

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

Merged revisions 420654 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 420655 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/12/   (props changed)
    branches/12/main/tcptls.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/main/tcptls.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/12/main/tcptls.c?view=diff&rev=420656&r1=420655&r2=420656
==============================================================================
--- branches/12/main/tcptls.c (original)
+++ branches/12/main/tcptls.c Mon Aug 11 04:53:29 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