From 9b47048231169ec1cdcea1f20638f6426d796e92 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 16 Feb 2010 05:44:39 -0800 Subject: [PATCH] Silence some warnings --- Alc/pulseaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 447a4945..e3b12838 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -147,7 +147,7 @@ void *pulse_load(void) //{{{ #ifdef _WIN32 pa_handle = LoadLibrary("libpulse-0.dll"); #define LOAD_FUNC(x) do { \ - p##x = GetProcAddress(pa_handle, #x); \ + p##x = (typeof(p##x))GetProcAddress(pa_handle, #x); \ if(!(p##x)) { \ AL_PRINT("Could not load %s from libpulse-0.dll\n", #x); \ FreeLibrary(pa_handle); \ @@ -156,7 +156,7 @@ void *pulse_load(void) //{{{ } \ } while(0) #define LOAD_OPTIONAL_FUNC(x) do { \ - p##x = GetProcAddress(pa_handle, #x); \ + p##x = (typeof(p##x))GetProcAddress(pa_handle, #x); \ } while(0) #elif defined (HAVE_DLFCN_H)