Index: vortex.c =================================================================== --- vortex.c (revision 3227) +++ vortex.c (working copy) @@ -575,12 +575,13 @@ const char * message, va_list args) { + VortexCtx * ctx; + bool use_log_mutex; #ifndef ENABLE_VORTEX_LOG /* do no operation if not defined debug */ return; #else - bool use_log_mutex; /* if not VORTEX_DEBUG FLAG, do not output anything */ if (!vortex_log_is_enabled ()) { @@ -588,7 +589,7 @@ } /* end if */ /* acquire mutex so multiple threads will not mix their log messages together */ - VortexCtx * ctx = vortex_ctx_get (); + ctx = vortex_ctx_get (); /* check log mutex status */ use_log_mutex = ctx->use_log_mutex;