summaryrefslogtreecommitdiff
path: root/main/tcptls.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/tcptls.c')
-rw-r--r--main/tcptls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/tcptls.c b/main/tcptls.c
index 012376cfe..fd6d5016e 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);
}