]> granicus.if.org Git - gc/commitdiff
Specify that unused select() result is intentional
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Jul 2017 08:50:04 +0000 (11:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 7 Aug 2017 21:51:27 +0000 (00:51 +0300)
(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

index b866e4a275bf880af647597ecc7725c83ffd8e7a..de31410d448359aeeb2ef610d833cbe05af5b905 100644 (file)
@@ -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) {