Module: vkd3d Branch: master Commit: 27a6963d6ae27d4494cb445363d490e408d1adab URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/27a6963d6ae27d4494cb445363d490...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Apr 1 15:57:44 2022 -0500
vkd3d: Avoid an unused variable warning when building for Win32.
---
libs/vkd3d/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 1c29bdc1..1ee6ed37 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -4410,7 +4410,6 @@ HRESULT vkd3d_create_thread(struct vkd3d_instance *instance, PFN_vkd3d_thread thread_main, void *data, union vkd3d_thread_handle *thread) { HRESULT hr = S_OK; - int rc;
if (instance->create_thread) { @@ -4437,6 +4436,8 @@ HRESULT vkd3d_create_thread(struct vkd3d_instance *instance, hr = E_FAIL; } #else + int rc; + if ((rc = pthread_create(&thread->pthread, NULL, thread_main, data))) { ERR("Failed to create thread, error %d.\n", rc);