Reactos

[UCRT] Add casts to make GCC happy

+3 -3
+3 -3
sdk/lib/ucrt/startup/thread.cpp
··· 126 126 return nullptr; 127 127 } 128 128 129 - parameter.get()->_procedure = procedure; 129 + parameter.get()->_procedure = reinterpret_cast<void*>(procedure); 130 130 parameter.get()->_context = context; 131 131 132 132 // Attempt to bump the reference count of the module in which the user's ··· 149 149 { 150 150 _VALIDATE_RETURN(procedure != nullptr, EINVAL, reinterpret_cast<uintptr_t>(INVALID_HANDLE_VALUE)); 151 151 152 - unique_thread_parameter parameter(create_thread_parameter(procedure, context)); 152 + unique_thread_parameter parameter(create_thread_parameter(reinterpret_cast<void*>(procedure), context)); 153 153 if (!parameter) 154 154 { 155 155 return reinterpret_cast<uintptr_t>(INVALID_HANDLE_VALUE); ··· 199 199 { 200 200 _VALIDATE_RETURN(procedure != nullptr, EINVAL, 0); 201 201 202 - unique_thread_parameter parameter(create_thread_parameter(procedure, context)); 202 + unique_thread_parameter parameter(create_thread_parameter((void*)procedure, context)); 203 203 if (!parameter) 204 204 { 205 205 return 0;