From 8ea3ef9d3dbec7710ff8aa92249db7c418ec6db2 Mon Sep 17 00:00:00 2001 From: Riggin Date: Wed, 28 Jun 2023 17:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BC=80=E5=90=AF=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E8=BE=93=E5=87=BA=E6=A8=A1=E5=BC=8F=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E4=B8=8D=E5=90=AF=E7=94=A8=20POSIX=20pthread=20=E5=BA=93?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=BC=96=E8=AF=91=E5=99=A8=E6=9C=89warning?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 警告信息 warning: 'thread_running' defined but not used [-Wunused-variable] --- easylogger/src/elog_async.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easylogger/src/elog_async.c b/easylogger/src/elog_async.c index a8b7e2f..95db74b 100755 --- a/easylogger/src/elog_async.c +++ b/easylogger/src/elog_async.c @@ -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 */