mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[MinGW] Fix if statements with stray semicolons after condition (#934)
In two places, a stray semicolon between an if statement and its body would cause the body to be executed unconditionally. Fix this. Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
@@ -371,8 +371,7 @@ void *ThreadPool_WorkerFunc( void *p )
|
||||
{
|
||||
#if (__MINGW32__)
|
||||
EnterCriticalSection(&gAtomicLock);
|
||||
if( jobError == CL_SUCCESS );
|
||||
jobError = err;
|
||||
if (jobError == CL_SUCCESS) jobError = err;
|
||||
gRunCount = 0;
|
||||
LeaveCriticalSection(&gAtomicLock);
|
||||
#elif defined( __GNUC__ )
|
||||
@@ -393,8 +392,7 @@ void *ThreadPool_WorkerFunc( void *p )
|
||||
#else
|
||||
if( pthread_mutex_lock(&gAtomicLock) )
|
||||
log_error( "Atomic operation failed. pthread_mutex_lock(&gAtomicLock) returned an error\n");
|
||||
if( jobError == CL_SUCCESS );
|
||||
jobError = err;
|
||||
if (jobError == CL_SUCCESS) jobError = err;
|
||||
gRunCount = 0;
|
||||
if( pthread_mutex_unlock(&gAtomicLock) )
|
||||
log_error( "Failed to release gAtomicLock. Further atomic operations may deadlock\n");
|
||||
|
||||
Reference in New Issue
Block a user