diff --git a/build.bat b/build.bat index d7a89fe20..bcb6d4c1a 100644 --- a/build.bat +++ b/build.bat @@ -69,6 +69,7 @@ set compiler_includes= ^ /Isrc\ set libs= ^ kernel32.lib ^ + Synchronization.lib ^ bin\llvm\windows\LLVM-C.lib set linker_flags= -incremental:no -opt:ref -subsystem:console @@ -95,4 +96,4 @@ if %release_mode% EQU 0 odin run examples/demo del *.obj > NUL 2> NUL -:end_of_build \ No newline at end of file +:end_of_build diff --git a/src/threading.cpp b/src/threading.cpp index 98b7aa0c2..f0a9faf19 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -529,7 +529,7 @@ gb_internal void tpool_wake_addr(Futex *addr) { gb_internal void tpool_wait_on_addr(Futex *addr, Footex val) { for (;;) { - int ret = WaitOnAddress(addr, (void *)&val, sizeof(val), INFINITE); + WaitOnAddress(addr, (void *)&val, sizeof(val), INFINITE); if (*addr != val) break; } }