diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-09-18 10:09:04 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-09-18 10:09:04 -0700 |
commit | 66565ca7a3cd63e242eedb0141341eb9450f0d4a (patch) | |
tree | 09ef30049942305dec9241fe896b8fad7685da11 /examples/alloopback.c | |
parent | da80a7c2b2e4a66856bec4d7b44c7a7df05a31a5 (diff) |
Enable and fix some more warnings
Diffstat (limited to 'examples/alloopback.c')
-rw-r--r-- | examples/alloopback.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/alloopback.c b/examples/alloopback.c index 426a2af9..844efa74 100644 --- a/examples/alloopback.c +++ b/examples/alloopback.c @@ -149,10 +149,10 @@ int main(int argc, char *argv[]) } /* Define a macro to help load the function pointers. */ -#define LOAD_PROC(x) ((x) = alcGetProcAddress(NULL, #x)) - LOAD_PROC(alcLoopbackOpenDeviceSOFT); - LOAD_PROC(alcIsRenderFormatSupportedSOFT); - LOAD_PROC(alcRenderSamplesSOFT); +#define LOAD_PROC(T, x) ((x) = (T)alcGetProcAddress(NULL, #x)) + LOAD_PROC(LPALCLOOPBACKOPENDEVICESOFT, alcLoopbackOpenDeviceSOFT); + LOAD_PROC(LPALCISRENDERFORMATSUPPORTEDSOFT, alcIsRenderFormatSupportedSOFT); + LOAD_PROC(LPALCRENDERSAMPLESSOFT, alcRenderSamplesSOFT); #undef LOAD_PROC if(SDL_Init(SDL_INIT_AUDIO) == -1) |