From 86e1f58bc0053d34639975e37f4668b4fab5f92d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 29 Oct 2021 20:10:39 +0100 Subject: [PATCH] Avoid unused variable warning when not using threads See: #307 --- src/os/unix/unix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/unix/unix.cpp b/src/os/unix/unix.cpp index 0f53fb1727..10914e32c8 100644 --- a/src/os/unix/unix.cpp +++ b/src/os/unix/unix.cpp @@ -337,8 +337,10 @@ int GetCurrentThreadName(char *str, const char *last) return 0; } +#if !defined(NO_THREADS) static pthread_t main_thread; static pthread_t game_thread; +#endif void SetSelfAsMainThread() {