From 1338adea4108f79f690498440d08cc3368475041 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Fri, 22 Sep 2023 01:56:57 +0200 Subject: [PATCH] fix warning --- src/debug.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/debug.c b/src/debug.c index 8ebeb12..c38c940 100644 --- a/src/debug.c +++ b/src/debug.c @@ -197,7 +197,7 @@ void dbg_printf(const char* fmt, ...) g_dbg_log_rotate = !g_dbg_log_rotate; - if (g_dbg_log_file = freopen(filename, "w", g_dbg_log_file)) + if ((g_dbg_log_file = freopen(filename, "w", g_dbg_log_file))) { setvbuf(g_dbg_log_file, NULL, _IOLBF, 1024); } @@ -206,8 +206,6 @@ void dbg_printf(const char* fmt, ...) if (g_dbg_log_file) { va_list args; - int ret; - SYSTEMTIME st; GetLocalTime(&st);