From: Peter Åstrand Date: Tue, 9 Dec 2008 10:53:50 +0000 (+0000) Subject: MinGW tweak: Force cast from `int (*)()' to `void*'. X-Git-Tag: v0.0.90~332 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5061f4cfb66ec9acd7847f24b95b9d41b26b7574;p=tigervnc.git MinGW tweak: Force cast from `int (*)()' to `void*'. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3334 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/rfb_win32/DynamicFn.cxx b/win/rfb_win32/DynamicFn.cxx index e933f249..b71ea7b3 100644 --- a/win/rfb_win32/DynamicFn.cxx +++ b/win/rfb_win32/DynamicFn.cxx @@ -32,7 +32,7 @@ DynamicFnBase::DynamicFnBase(const TCHAR* dllName, const char* fnName) : dllHand vlog.info("DLL %s not found (%d)", (const char*)CStr(dllName), GetLastError()); return; } - fnPtr = GetProcAddress(dllHandle, fnName); + fnPtr = (void*) GetProcAddress(dllHandle, fnName); if (!fnPtr) vlog.info("proc %s not found in %s (%d)", fnName, (const char*)CStr(dllName), GetLastError()); }