From f7d2ccc1c1d5d7a6a88f5f58ac6c61aba54e1d86 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 20 Jul 2017 11:50:04 +0300 Subject: [PATCH] Specify that unused select() result is intentional (fix commit 62097c3) * pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD] (GC_brief_async_signal_safe_sleep): Cast select() result to void. --- pthread_stop_world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pthread_stop_world.c b/pthread_stop_world.c index b866e4a2..de31410d 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -400,7 +400,7 @@ STATIC void GC_restart_handler(int sig) # else tv.tv_usec = 1000 * 50 / 2; # endif - select(0, 0, 0, 0, &tv); + (void)select(0, 0, 0, 0, &tv); } static void *GC_CALLBACK suspend_self_inner(void *client_data) { -- 2.40.0