From cb0cdc6fc8f361336c6023e9f15c0b65c3f58295 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 13 Jul 2013 21:13:09 +0200 Subject: [PATCH] Fixed compiler warnings in test programs. --- test/testiconv.c | 2 +- test/testintersections.c | 1 - test/testloadso.c | 2 +- test/testrumble.c | 6 +----- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/test/testiconv.c b/test/testiconv.c index 85c2e4871..d6738df44 100644 --- a/test/testiconv.c +++ b/test/testiconv.c @@ -45,7 +45,7 @@ main(int argc, char *argv[]) char buffer[BUFSIZ]; char *ucs4; char *test[2]; - int i, index = 0; + int i; FILE *file; int errors = 0; diff --git a/test/testintersections.c b/test/testintersections.c index c93f04ed9..638c399c8 100644 --- a/test/testintersections.c +++ b/test/testintersections.c @@ -98,7 +98,6 @@ void DrawLines(SDL_Renderer * renderer) { int i; - int x1, y1, x2, y2; SDL_Rect viewport; /* Query the sizes */ diff --git a/test/testloadso.c b/test/testloadso.c index 8a46bd2cb..0dde5f0d0 100644 --- a/test/testloadso.c +++ b/test/testloadso.c @@ -78,5 +78,5 @@ main(int argc, char *argv[]) SDL_UnloadObject(lib); } SDL_Quit(); - return (0); + return retval; } diff --git a/test/testrumble.c b/test/testrumble.c index 6efc42c2b..b200345bd 100644 --- a/test/testrumble.c +++ b/test/testrumble.c @@ -50,10 +50,6 @@ main(int argc, char **argv) int i; char *name; int index; - SDL_HapticEffect efx[5]; - int id[5]; - int nefx; - unsigned int supported; name = NULL; index = -1; @@ -130,7 +126,7 @@ main(int argc, char **argv) SDL_HapticRumbleStop(haptic); SDL_Delay(2000); printf("Playing 2 second rumble at 0.3 magnitude.\n"); - if (SDL_HapticRumblePlay(haptic, 0.3, 5000) != 0) { + if (SDL_HapticRumblePlay(haptic, 0.3f, 5000) != 0) { printf("\nFailed to play rumble: %s\n", SDL_GetError() ); return 1; }