Avoid unused variable warning when not in devmode
authorDavid M. Lee <dlee@digium.com>
Mon, 15 Apr 2013 16:47:25 +0000 (16:47 +0000)
committerDavid M. Lee <dlee@digium.com>
Mon, 15 Apr 2013 16:47:25 +0000 (16:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385743 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_stasis_websocket.c

index 3ef0085..5b21ebb 100644 (file)
@@ -114,7 +114,9 @@ struct stasis_ws_session_info {
 
 static void session_dtor(void *obj)
 {
+#ifdef AST_DEVMODE /* Avoid unused variable warning */
        struct stasis_ws_session_info *session = obj;
+#endif
 
        /* session_shutdown should have been called before */
        ast_assert(session->ws_session == NULL);