Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warnings in test programs.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jul 13, 2013
1 parent 250c38a commit cb0cdc6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/testiconv.c
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion test/testintersections.c
Expand Up @@ -98,7 +98,6 @@ void
DrawLines(SDL_Renderer * renderer)
{
int i;
int x1, y1, x2, y2;
SDL_Rect viewport;

/* Query the sizes */
Expand Down
2 changes: 1 addition & 1 deletion test/testloadso.c
Expand Up @@ -78,5 +78,5 @@ main(int argc, char *argv[])
SDL_UnloadObject(lib);
}
SDL_Quit();
return (0);
return retval;
}
6 changes: 1 addition & 5 deletions test/testrumble.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit cb0cdc6

Please sign in to comment.