From: Walter Doekes Date: Mon, 11 Aug 2014 09:55:13 +0000 (+0000) Subject: tcptls: Avoid compiler warning on non-dev-mode. X-Git-Tag: 14.0.0-beta1~1769 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2afbc48e4daf1a0c05fb81a25f48b176d307c1e;p=thirdparty%2Fasterisk.git 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 ........ Merged revisions 420656 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 420657 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420658 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/tcptls.c b/main/tcptls.c index 012376cfe7..fd6d5016ed 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -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); }