diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-23 22:51:31 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-23 22:52:45 +0900 |
commit | b180ffa62270dc32bb69167822b4c698def5c8f7 (patch) | |
tree | 209f0db209dafc9c6e0fe24573b06aa4d68694a6 /thread_win32.c | |
parent | 41cdf9b11457992f49f1252db83de4280456679e (diff) |
Fix warnings by old gcc
* Use PRIxSIZE instead of "z"
* Fix sign-compare warning
* Suppress unused-but-set-variable warning
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |