Explorar el Código

SDL_sysmutex.c: fix void return compile error

Mark Delk hace 1 año
padre
commit
dd4636e3fd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/thread/pthread/SDL_sysmutex.c

+ 2 - 1
src/thread/pthread/SDL_sysmutex.c

@@ -141,7 +141,8 @@ void SDL_UnlockMutex(SDL_Mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS // clang do
                 pthread_mutex_unlock(&mutex->id);
                 pthread_mutex_unlock(&mutex->id);
             }
             }
         } else {
         } else {
-            return SDL_SetError("mutex not owned by this thread");
+            SDL_SetError("mutex not owned by this thread");
+            return;
         }
         }
 
 
 #else
 #else