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

+7 -6
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)) {