From f25f7f23b513d7737f858d42706681e907d6c86d Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Thu, 24 Jan 2019 15:12:16 +0100 Subject: [PATCH] Fix warning about casting result of GetProcAddress. --- RtAudio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.30.2