]> granicus.if.org Git - libatomic_ops/commitdiff
Workaround 'unused result' code defect in atomic_ops.c
authorIvan Maidanski <ivmai@mail.ru>
Mon, 24 Jul 2017 09:28:42 +0000 (12:28 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 24 Jul 2017 09:28:42 +0000 (12:28 +0300)
* src/atomic_ops.c [!AO_USE_NANOSLEEP && !AO_USE_WIN32_PTHREADS]
(AO_pause): Cast select() result to void.

src/atomic_ops.c

index 9d06935dcd8f519e992294ff2410f123377b3955..5f33a9056bdb62aab5f4f3a79ab75abaa2faf741 100644 (file)
@@ -259,7 +259,7 @@ void AO_pause(int n)
 
         tv.tv_sec = 0;
         tv.tv_usec = usec;
-        select(0, 0, 0, 0, &tv);
+        (void)select(0, 0, 0, 0, &tv);
 #     endif
     }
 }