[asterisk-commits] dlee: trunk r385743 - /trunk/res/res_stasis_websocket.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 15 11:47:29 CDT 2013


Author: dlee
Date: Mon Apr 15 11:47:25 2013
New Revision: 385743

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385743
Log:
Avoid unused variable warning when not in devmode

Modified:
    trunk/res/res_stasis_websocket.c

Modified: trunk/res/res_stasis_websocket.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_stasis_websocket.c?view=diff&rev=385743&r1=385742&r2=385743
==============================================================================
--- trunk/res/res_stasis_websocket.c (original)
+++ trunk/res/res_stasis_websocket.c Mon Apr 15 11:47:25 2013
@@ -114,7 +114,9 @@
 
 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);




More information about the asterisk-commits mailing list