mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fix warnings about static function and prototype
This commit is contained in:
parent
61309b4382
commit
16bb6a0b3d
30 changed files with 137 additions and 142 deletions
|
|
@ -21,9 +21,6 @@
|
|||
#include <SDL3/SDL_main.h>
|
||||
#include "testutils.h"
|
||||
|
||||
#define WINDOW_WIDTH 640
|
||||
#define WINDOW_HEIGHT 480
|
||||
|
||||
static SDLTest_CommonState *state;
|
||||
|
||||
typedef struct
|
||||
|
|
@ -36,8 +33,8 @@ typedef struct
|
|||
int scale_direction;
|
||||
} DrawState;
|
||||
|
||||
DrawState *drawstates;
|
||||
int done;
|
||||
static DrawState *drawstates;
|
||||
static int done;
|
||||
|
||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||
static void
|
||||
|
|
@ -47,7 +44,7 @@ quit(int rc)
|
|||
exit(rc);
|
||||
}
|
||||
|
||||
void Draw(DrawState *s)
|
||||
static void Draw(DrawState *s)
|
||||
{
|
||||
SDL_Rect viewport;
|
||||
|
||||
|
|
@ -77,7 +74,7 @@ void Draw(DrawState *s)
|
|||
SDL_RenderPresent(s->renderer);
|
||||
}
|
||||
|
||||
void loop()
|
||||
static void loop(void)
|
||||
{
|
||||
int i;
|
||||
SDL_Event event;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue