From 79b3221b0e59ff46552b43da9745db765e34afaa Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Thu, 25 Dec 2014 22:03:07 +0100 Subject: [PATCH] Fixed compile warnings about unused variables. Found by buildbot. --- src/audio/emscripten/SDL_emscriptenaudio.c | 1 - src/joystick/emscripten/SDL_sysjoystick.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/audio/emscripten/SDL_emscriptenaudio.c b/src/audio/emscripten/SDL_emscriptenaudio.c index c3ba94ef1..d9334daec 100644 --- a/src/audio/emscripten/SDL_emscriptenaudio.c +++ b/src/audio/emscripten/SDL_emscriptenaudio.c @@ -62,7 +62,6 @@ HandleAudioProcess(_THIS) int byte_len = 0; int bytes = SDL_AUDIO_BITSIZE(this->spec.format) / 8; int bytes_in = SDL_AUDIO_BITSIZE(this->convert.src_format) / 8; - int i; /* Only do soemthing if audio is enabled */ if (!this->enabled) diff --git a/src/joystick/emscripten/SDL_sysjoystick.c b/src/joystick/emscripten/SDL_sysjoystick.c index 3c002e394..5a948e7d8 100644 --- a/src/joystick/emscripten/SDL_sysjoystick.c +++ b/src/joystick/emscripten/SDL_sysjoystick.c @@ -335,7 +335,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick) { EmscriptenGamepadEvent gamepadState; SDL_joylist_item *item = SDL_joylist; - int i, result, button, buttonState; + int i, result, buttonState; while (item != NULL) { result = emscripten_get_gamepad_status(item->index, &gamepadState);