]> 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>
Thu, 20 Jul 2017 08:50:04 +0000 (11:50 +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 7c6e403030b179b45bcbaba602b3c70fbbc7a7a0..706e6d9f0fc2fefcf93e89aefacb82d7ba4ac1de 100644 (file)
@@ -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) {