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,7 +21,7 @@
#include <SDL3/SDL_main.h>
static SDLTest_CommonState *state;
int done;
static int done;
static const char *cursorNames[] = {
"arrow",
@@ -37,10 +37,10 @@ static const char *cursorNames[] = {
"NO",
"hand",
};
int system_cursor = -1;
SDL_Cursor *cursor = NULL;
SDL_bool relative_mode = SDL_FALSE;
const SDL_DisplayMode *highlighted_mode = NULL;
static int system_cursor = -1;
static SDL_Cursor *cursor = NULL;
static SDL_bool relative_mode = SDL_FALSE;
static const SDL_DisplayMode *highlighted_mode = NULL;
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
static void
@@ -150,7 +150,7 @@ draw_modes_menu(SDL_Window *window, SDL_Renderer *renderer, SDL_FRect viewport)
}
}
void loop()
static void loop(void)
{
int i;
SDL_Event event;