Fix warnings about static function and prototype

This commit is contained in:
Sylvain authored and Sylvain Becker committed 2023-03-08 11:41:18 +01:00
1 parent 61309b4382
commit 16bb6a0b3d
30 files changed
+137 -142

No files matched your search

+3 -3
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;