reinterpret_cast may not convert a pointer-to-function to a
void-pointer. Take a detour through intptr_t and *then* convert to a
pointer-to-function.
This fixes a diagnostic emitted by GCC.
llvm-svn: 213696
if (log)
log->Printf ("SBCommunication(%p)::SetReadThreadBytesReceivedCallback (callback=%p, baton=%p) => %i",
static_cast<void*>(m_opaque),
- reinterpret_cast<void*>(callback),
+ reinterpret_cast<void*>(reinterpret_cast<intptr_t>(callback)),
static_cast<void*>(callback_baton), result);
return result;