mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +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
|
|
@ -36,9 +36,9 @@ static Uint64 next_fps_check;
|
|||
static Uint32 frames;
|
||||
static const int fps_check_delay = 5000;
|
||||
|
||||
int done;
|
||||
static int done;
|
||||
|
||||
void DrawPoints(SDL_Renderer *renderer)
|
||||
static void DrawPoints(SDL_Renderer *renderer)
|
||||
{
|
||||
int i;
|
||||
float x, y;
|
||||
|
|
@ -80,7 +80,7 @@ void DrawPoints(SDL_Renderer *renderer)
|
|||
}
|
||||
}
|
||||
|
||||
void DrawLines(SDL_Renderer *renderer)
|
||||
static void DrawLines(SDL_Renderer *renderer)
|
||||
{
|
||||
int i;
|
||||
float x1, y1, x2, y2;
|
||||
|
|
@ -131,7 +131,7 @@ void DrawLines(SDL_Renderer *renderer)
|
|||
}
|
||||
}
|
||||
|
||||
void DrawRects(SDL_Renderer *renderer)
|
||||
static void DrawRects(SDL_Renderer *renderer)
|
||||
{
|
||||
int i;
|
||||
SDL_FRect rect;
|
||||
|
|
@ -175,7 +175,7 @@ void DrawRects(SDL_Renderer *renderer)
|
|||
}
|
||||
}
|
||||
|
||||
void loop()
|
||||
static void loop(void)
|
||||
{
|
||||
Uint64 now;
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue