Static analysis fix: Removed unused variable.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 20 Mar 2014 16:56:37 -0400
changeset 86579be67c80e84e
parent 8656 d62ef586c696
child 8658 7939f33e81ac
Static analysis fix: Removed unused variable.

(We don't care if closing the device fails anyhow).
src/audio/coreaudio/SDL_coreaudio.c
     1.1 --- a/src/audio/coreaudio/SDL_coreaudio.c	Thu Mar 20 16:54:20 2014 -0400
     1.2 +++ b/src/audio/coreaudio/SDL_coreaudio.c	Thu Mar 20 16:56:37 2014 -0400
     1.3 @@ -319,7 +319,6 @@
     1.4  {
     1.5      if (this->hidden != NULL) {
     1.6          if (this->hidden->audioUnitOpened) {
     1.7 -            OSStatus result = noErr;
     1.8              AURenderCallbackStruct callback;
     1.9              const AudioUnitElement output_bus = 0;
    1.10              const AudioUnitElement input_bus = 1;
    1.11 @@ -331,14 +330,13 @@
    1.12                   kAudioUnitScope_Input);
    1.13  
    1.14              /* stop processing the audio unit */
    1.15 -            result = AudioOutputUnitStop(this->hidden->audioUnit);
    1.16 +            AudioOutputUnitStop(this->hidden->audioUnit);
    1.17  
    1.18              /* Remove the input callback */
    1.19              SDL_memset(&callback, 0, sizeof(AURenderCallbackStruct));
    1.20 -            result = AudioUnitSetProperty(this->hidden->audioUnit,
    1.21 -                                          kAudioUnitProperty_SetRenderCallback,
    1.22 -                                          scope, bus, &callback,
    1.23 -                                          sizeof(callback));
    1.24 +            AudioUnitSetProperty(this->hidden->audioUnit,
    1.25 +                                 kAudioUnitProperty_SetRenderCallback,
    1.26 +                                 scope, bus, &callback, sizeof(callback));
    1.27  
    1.28              #if MACOSX_COREAUDIO
    1.29              CloseComponent(this->hidden->audioUnit);