Fixed compiler warnings in test programs.
This commit is contained in:
parent
f158b5f47e
commit
59401ae635
4 changed files with 3 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue