[sanitizer] Fix warning on windows

Return value is not used anyway as PTHREAD_JOIN is not implemented.
This commit is contained in:
Vitaly Buka 2020-03-16 19:11:56 -07:00
parent d00d6a19dd
commit f0714cbb6a
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ struct PthreadHelperCreateThreadInfo {
inline DWORD WINAPI PthreadHelperThreadProc(void *arg) {
PthreadHelperCreateThreadInfo *start_data =
reinterpret_cast<PthreadHelperCreateThreadInfo*>(arg);
void *ret = (start_data->start_routine)(start_data->arg);
(start_data->start_routine)(start_data->arg);
delete start_data;
return (DWORD)ret;
return 0;
}
inline void PTHREAD_CREATE(pthread_t *thread, void *attr,
@ -60,7 +60,7 @@ inline void PTHREAD_JOIN(pthread_t thread, void **value_ptr) {
inline void pthread_exit(void *retval) {
ASSERT_EQ(0, retval) << "Nonzero retval is not supported yet.";
ExitThread((DWORD)retval);
ExitThread(0);
}
#endif // _WIN32