From: Ivan Maidanski Date: Thu, 20 Jul 2017 08:50:04 +0000 (+0300) Subject: Specify that unused select() result is intentional X-Git-Tag: v7.6.2~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7d2ccc1c1d5d7a6a88f5f58ac6c61aba54e1d86;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 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) {