From 0ffdd2607f4ce56e4a35e959d1f5adcc07959320 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Tue, 29 Jan 2013 23:24:51 -0600 Subject: Fix the majority of the compiler warnings unearthed by the addition of the new warning flags. --- Source/Core/AudioCommon/Src/OpenALStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/AudioCommon/Src/OpenALStream.cpp') diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index cfe6a40630..6b239a584c 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -316,7 +316,7 @@ void OpenALStream::SoundLoop() if (iBuffersFilled == numBuffers) { alSourcePlay(uiSource); - ALenum err = alGetError(); + err = alGetError(); if (err != 0) { ERROR_LOG(AUDIO, "Error occurred during playback: %08x", err); @@ -328,7 +328,7 @@ void OpenALStream::SoundLoop() { // Buffer underrun occurred, resume playback alSourcePlay(uiSource); - ALenum err = alGetError(); + err = alGetError(); if (err != 0) { ERROR_LOG(AUDIO, "Error occurred resuming playback: %08x", err); -- cgit v1.2.3