More fix warnings about static function and prototype

This commit is contained in:
Sylvain authored and Sylvain Becker committed 2023-03-08 16:14:09 +01:00
1 parent 16bb6a0b3d
commit c963f02571
38 files changed
+262 -257

No files matched your search

+2 -4
View File
@@ -28,8 +28,7 @@ static float mouseX, mouseY;
static SDL_FRect rect;
static SDL_Event event;
static void
DrawRects(SDL_Renderer *renderer)
static void DrawRects(SDL_Renderer *renderer)
{
SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
rect.x = mouseX;
@@ -37,8 +36,7 @@ DrawRects(SDL_Renderer *renderer)
SDL_RenderFillRect(renderer, &rect);
}
static void
loop()
static void loop(void)
{
/* Check for events */
while (SDL_PollEvent(&event)) {