mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Avoid an unused variable warning when building for Win32.
This commit is contained in:
parent
d5fd309ef8
commit
27a6963d6a
Notes:
Alexandre Julliard
2022-10-18 00:13:00 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/21
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user