Kaynağa Gözat

SDL_sysmutex.c: fix void return compile error

Mark Delk 1 yıl önce
ebeveyn
işleme
dd4636e3fd
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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);
             }
         } else {
-            return SDL_SetError("mutex not owned by this thread");
+            SDL_SetError("mutex not owned by this thread");
+            return;
         }
 
 #else