From 237c642fb50ee0d4c777fc9cd0e7a5b0ead7cabd Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 22 Apr 2020 11:24:20 +0200 Subject: fix THREAD_SET_AFFINITY always failing --- src/threading.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/threading.c b/src/threading.c index f1720eb..8757207 100644 --- a/src/threading.c +++ b/src/threading.c @@ -343,7 +343,7 @@ void THREAD_SET_PRIORITY( int prio) void THREAD_SET_AFFINITY( unsigned int aff) { - if( !SetThreadAffinityMask( GetCurrentThread(), aff)); + if( !SetThreadAffinityMask( GetCurrentThread(), aff)) { FAIL( "THREAD_SET_AFFINITY", GetLastError()); } @@ -515,7 +515,7 @@ bool_t THREAD_WAIT_IMPL( THREAD_T *ref, double secs) void SIGNAL_FREE( SIGNAL_T *ref ) { // nothing to do - ref; + (void)ref; } bool_t SIGNAL_WAIT( SIGNAL_T *ref, MUTEX_T *mu_ref, time_d abs_secs) -- cgit v1.2.3-55-g6feb