diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-07-28 16:50:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-08-06 10:52:00 +0900 |
commit | 27173e3735ff509dc8d9cc9b410baff84adf57dc (patch) | |
tree | 7b962014a706c970620e1a57b5e4bfacc5acc599 /thread_win32.c | |
parent | 58c8b6e86273ccb7a1b903d9ab35956b69b3b1bf (diff) |
Allow `RUBY_DEBUG_LOG` format to be empty
GCC warns of empty format strings, perhaps because they have no
effects in printf() and there are better ways than sprintf().
However, ruby_debug_log() adds informations other than the format,
this warning is not the case.
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_win32.c b/thread_win32.c index cbb01d5d84..e9deff23cc 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -746,7 +746,7 @@ static unsigned long __stdcall timer_thread_func(void *dummy) { rb_vm_t *vm = GET_VM(); - RUBY_DEBUG_LOG("%s", "start"); + RUBY_DEBUG_LOG("start"); rb_w32_set_thread_description(GetCurrentThread(), L"ruby-timer-thread"); while (WaitForSingleObject(timer_thread.lock, TIME_QUANTUM_USEC/1000) == WAIT_TIMEOUT) { @@ -754,7 +754,7 @@ timer_thread_func(void *dummy) ruby_sigchld_handler(vm); /* probably no-op */ rb_threadptr_check_signal(vm->ractor.main_thread); } - RUBY_DEBUG_LOG("%s", "end"); + RUBY_DEBUG_LOG("end"); return 0; } |