From 5061f4cfb66ec9acd7847f24b95b9d41b26b7574 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Tue, 9 Dec 2008 10:53:50 +0000 Subject: [PATCH] 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 --- win/rfb_win32/DynamicFn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.39.5