From a43dbfad0de3fd968f303c35d04cde91f39380cf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 20 Mar 2014 16:56:37 -0400 Subject: [PATCH] Static analysis fix: Removed unused variable. (We don't care if closing the device fails anyhow). --- src/audio/coreaudio/SDL_coreaudio.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/audio/coreaudio/SDL_coreaudio.c b/src/audio/coreaudio/SDL_coreaudio.c index 950110289..7fc9ea94b 100644 --- a/src/audio/coreaudio/SDL_coreaudio.c +++ b/src/audio/coreaudio/SDL_coreaudio.c @@ -319,7 +319,6 @@ COREAUDIO_CloseDevice(_THIS) { if (this->hidden != NULL) { if (this->hidden->audioUnitOpened) { - OSStatus result = noErr; AURenderCallbackStruct callback; const AudioUnitElement output_bus = 0; const AudioUnitElement input_bus = 1; @@ -331,14 +330,13 @@ COREAUDIO_CloseDevice(_THIS) kAudioUnitScope_Input); /* stop processing the audio unit */ - result = AudioOutputUnitStop(this->hidden->audioUnit); + AudioOutputUnitStop(this->hidden->audioUnit); /* Remove the input callback */ SDL_memset(&callback, 0, sizeof(AURenderCallbackStruct)); - result = AudioUnitSetProperty(this->hidden->audioUnit, - kAudioUnitProperty_SetRenderCallback, - scope, bus, &callback, - sizeof(callback)); + AudioUnitSetProperty(this->hidden->audioUnit, + kAudioUnitProperty_SetRenderCallback, + scope, bus, &callback, sizeof(callback)); #if MACOSX_COREAUDIO CloseComponent(this->hidden->audioUnit);