mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-25 16:54:24 +00:00
Fix warnings about static function and prototype
This commit is contained in:
@@ -33,8 +33,8 @@ typedef struct
|
||||
int scale_direction;
|
||||
} DrawState;
|
||||
|
||||
DrawState *drawstates;
|
||||
int done;
|
||||
static DrawState *drawstates;
|
||||
static int done;
|
||||
|
||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||
static void
|
||||
@@ -44,7 +44,7 @@ quit(int rc)
|
||||
exit(rc);
|
||||
}
|
||||
|
||||
void Draw(DrawState *s)
|
||||
static void Draw(DrawState *s)
|
||||
{
|
||||
SDL_Rect viewport;
|
||||
SDL_Texture *target;
|
||||
@@ -86,7 +86,7 @@ void Draw(DrawState *s)
|
||||
/* SDL_Delay(10); */
|
||||
}
|
||||
|
||||
void loop()
|
||||
static void loop(void)
|
||||
{
|
||||
int i;
|
||||
SDL_Event event;
|
||||
|
||||
Reference in New Issue
Block a user