From b180ffa62270dc32bb69167822b4c698def5c8f7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 23 Jun 2022 22:51:31 +0900 Subject: Fix warnings by old gcc * Use PRIxSIZE instead of "z" * Fix sign-compare warning * Suppress unused-but-set-variable warning --- thread_win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'thread_win32.c') diff --git a/thread_win32.c b/thread_win32.c index ccff8bc93f..714d601340 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -213,7 +213,7 @@ w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th) DWORD ret; w32_event_debug("events:%p, count:%d, timeout:%ld, th:%u\n", - events, count, timeout, th ? rb_th_serial(th) : -1); + events, count, timeout, th ? rb_th_serial(th) : UINT_MAX); if (th && (intr = th->nt->interrupt_event)) { if (ResetEvent(intr) && (!RUBY_VM_INTERRUPTED(th->ec) || SetEvent(intr))) { @@ -347,6 +347,7 @@ native_sleep(rb_thread_t *th, rb_hrtime_t *rel) RUBY_DEBUG_LOG("start msec:%lu", msec); ret = w32_wait_events(0, 0, msec, th); RUBY_DEBUG_LOG("done ret:%lu", ret); + (void)ret; } rb_native_mutex_lock(&th->interrupt_lock); -- cgit v1.2.1