解决开启异步输出模式,但不启用 POSIX pthread 库时,编译器有warning的问题。

警告信息   warning: 'thread_running' defined but not used [-Wunused-variable]
pull/142/head
Riggin 3 years ago
parent ad264f0df6
commit 8ea3ef9d3d

@ -80,8 +80,10 @@ static pthread_t async_output_thread;
/* Initialize OK flag */
static bool init_ok = false;
#ifdef ELOG_ASYNC_OUTPUT_USING_PTHREAD
/* thread running flag */
static bool thread_running = false;
#endif
/* asynchronous output mode enabled flag */
static bool is_enabled = false;
/* asynchronous output mode's ring buffer */

Loading…
Cancel
Save