Fix warnings about static function and prototype

This commit is contained in:
Sylvain
2023-03-08 11:40:07 +01:00
committed by Sylvain Becker
parent 61309b4382
commit 16bb6a0b3d
30 changed files with 137 additions and 142 deletions

View File

@@ -31,7 +31,7 @@ static int width = 640;
static int height = 480;
static unsigned int max_frames = 200;
void draw()
static void draw(void)
{
SDL_FRect rect;
@@ -49,7 +49,7 @@ void draw()
SDL_RenderPresent(renderer);
}
void save_surface_to_bmp()
static void save_surface_to_bmp(void)
{
SDL_Surface* surface;
Uint32 pixel_format;
@@ -68,7 +68,7 @@ void save_surface_to_bmp()
SDL_DestroySurface(surface);
}
void loop()
static void loop(void)
{
SDL_Event event;