mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 19:07:40 +00:00
Fix warnings about static function and prototype
This commit is contained in:
parent
61309b4382
commit
16bb6a0b3d
30 changed files with 137 additions and 142 deletions
|
@ -33,9 +33,9 @@ typedef struct
|
|||
int scale_direction;
|
||||
} DrawState;
|
||||
|
||||
DrawState *drawstates;
|
||||
int done;
|
||||
SDL_bool test_composite = SDL_FALSE;
|
||||
static DrawState *drawstates;
|
||||
static int done;
|
||||
static SDL_bool test_composite = SDL_FALSE;
|
||||
|
||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||
static void
|
||||
|
@ -45,7 +45,7 @@ quit(int rc)
|
|||
exit(rc);
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
static SDL_bool
|
||||
DrawComposite(DrawState *s)
|
||||
{
|
||||
SDL_Rect viewport;
|
||||
|
@ -129,7 +129,7 @@ DrawComposite(DrawState *s)
|
|||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
static SDL_bool
|
||||
Draw(DrawState *s)
|
||||
{
|
||||
SDL_Rect viewport;
|
||||
|
@ -173,7 +173,7 @@ Draw(DrawState *s)
|
|||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
void loop()
|
||||
static void loop(void)
|
||||
{
|
||||
int i;
|
||||
SDL_Event event;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue