From: José Fonseca Date: Wed, 23 Jan 2013 15:00:47 +0000 (+0000) Subject: os: Cast pthread_create's arg parameter. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=93d51c3065260cdb088f33d3e6d5bdfb4707c1a9 os: Cast pthread_create's arg parameter. --- diff --git a/common/os_thread.hpp b/common/os_thread.hpp index 9dc656e..2c3f732 100644 --- a/common/os_thread.hpp +++ b/common/os_thread.hpp @@ -312,7 +312,7 @@ namespace os { DWORD id = 0; _native_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)f, (LPVOID)arg, 0, &id); #else - pthread_create(&_native_handle, NULL, ( void *(*) (void *))f, arg); + pthread_create(&_native_handle, NULL, (void *(*) (void *))f, (void *)arg); #endif }