Fixed compile warnings about unused variables.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 25 Dec 2014 22:03:07 +0100
changeset 9291 02b47b8164da
parent 9290 fe975b2313fa
child 9292 e0868ad5810c
Fixed compile warnings about unused variables. Found by buildbot.
src/audio/emscripten/SDL_emscriptenaudio.c
src/joystick/emscripten/SDL_sysjoystick.c
--- a/src/audio/emscripten/SDL_emscriptenaudio.c	Thu Dec 25 21:42:56 2014 +0100
+++ b/src/audio/emscripten/SDL_emscriptenaudio.c	Thu Dec 25 22:03:07 2014 +0100
@@ -62,7 +62,6 @@
     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)
--- a/src/joystick/emscripten/SDL_sysjoystick.c	Thu Dec 25 21:42:56 2014 +0100
+++ b/src/joystick/emscripten/SDL_sysjoystick.c	Thu Dec 25 22:03:07 2014 +0100
@@ -335,7 +335,7 @@
 {
     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);