From: Ivan Maidanski Date: Thu, 20 Jul 2017 08:50:04 +0000 (+0300) Subject: Specify that unused select() result is intentional X-Git-Tag: v8.0.0~633 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fa721ed802926384c720dee9d35c2a0be0b1632;p=gc 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. --- diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 7c6e4030..706e6d9f 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -401,7 +401,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) {