From: Stephen Sinclair Date: Thu, 24 Jan 2019 14:12:16 +0000 (+0100) Subject: Fix warning about casting result of GetProcAddress. X-Git-Tag: 5.1.0~21 X-Git-Url: https://git.carlh.net/gitweb/?p=rtaudio.git;a=commitdiff_plain;h=f25f7f23b513d7737f858d42706681e907d6c86d Fix warning about casting result of GetProcAddress. --- diff --git a/RtAudio.cpp b/RtAudio.cpp index 8037d2a..9927b26 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -4997,7 +4997,8 @@ void RtApiWasapi::wasapiThread() HMODULE AvrtDll = LoadLibrary( (LPCTSTR) "AVRT.dll" ); if ( AvrtDll ) { DWORD taskIndex = 0; - TAvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristicsPtr = ( TAvSetMmThreadCharacteristicsPtr ) GetProcAddress( AvrtDll, "AvSetMmThreadCharacteristicsW" ); + TAvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristicsPtr = + ( TAvSetMmThreadCharacteristicsPtr ) (void(*)()) GetProcAddress( AvrtDll, "AvSetMmThreadCharacteristicsW" ); AvSetMmThreadCharacteristicsPtr( L"Pro Audio", &taskIndex ); FreeLibrary( AvrtDll ); }