]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
tcptls: Avoid compiler warning on non-dev-mode.
authorWalter Doekes <walter+asterisk@wjd.nu>
Mon, 11 Aug 2014 09:52:36 +0000 (09:52 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Mon, 11 Aug 2014 09:52:36 +0000 (09:52 +0000)
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@420655 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/tcptls.c

index 912b33e0cdb3b56a37ba148fb97b2d3e5cac51fa..9f21850a47493c5dec74af86c781c5f5143729b2 100644 (file)
@@ -434,7 +434,12 @@ static int tcptls_stream_close(void *cookie)
  */
 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);
 }