Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed compiler warnings in test programs.

  • Loading branch information
philippwiesemann committed Jul 13, 2013
1 parent 250c38a commit cb0cdc6fc8f361336c6023e9f15c0b65c3f58295
Showing with 3 additions and 8 deletions.
  1. +1 −1 test/testiconv.c
  2. +0 −1 test/testintersections.c
  3. +1 −1 test/testloadso.c
  4. +1 −5 test/testrumble.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;

@@ -98,7 +98,6 @@ void
DrawLines(SDL_Renderer * renderer)
{
int i;
int x1, y1, x2, y2;
SDL_Rect viewport;

/* Query the sizes */
@@ -78,5 +78,5 @@ main(int argc, char *argv[])
SDL_UnloadObject(lib);
}
SDL_Quit();
return (0);
return retval;
}
@@ -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;
}

0 comments on commit cb0cdc6

Please sign in to comment.