PluginManager: Don't cast from void-pointer to pointer-to-function

GCC warns on reinterpret_cast expressions involving a void-pointer
source and a pointer-to-function destination.  Take a detour through
intptr_t to silence it.

Differential Revision: http://reviews.llvm.org/D4626

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213691 91177308-0d34-0410-b5e6-96231b3b80d8
SBHostOS: Fix a pointer-to-function to void-pointer cast

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 warning emitted by GCC.

Differential Revision: http://reviews.llvm.org/D4624

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213692 91177308-0d34-0410-b5e6-96231b3b80d8
Host: Fix a pointer-to-function to void-pointer cast

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 silences a warning emitted by GCC when building LLDB.

Differential Revision: http://reviews.llvm.org/D4631

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213693 91177308-0d34-0410-b5e6-96231b3b80d8
ScriptInterpreterPython: %p should be used with void-pointer

printf's %p format specifier expects an argument of type void-pointer,
not type PyThreadState*.  Fix this with a static_cast.

Differential Revision: http://reviews.llvm.org/D4632

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213695 91177308-0d34-0410-b5e6-96231b3b80d8
SBCommunication: Fix a pointer-to-function to void-pointer cast

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.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213696 91177308-0d34-0410-b5e6-96231b3b80d8