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

@@ -21,12 +21,13 @@
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Surface *surface;
int done;
static SDL_Window *window;
static SDL_Renderer *renderer;
static SDL_Surface *surface;
static int done;
void DrawChessBoard()
static void DrawChessBoard(void)
{
int row = 0, column = 0, x = 0;
SDL_FRect rect;
@@ -57,7 +58,7 @@ void DrawChessBoard()
}
}
void loop()
static void loop(void)
{
SDL_Event e;
while (SDL_PollEvent(&e)) {