From 088a0fc91c6de78e3ecfb5c8f2d7e453d507f2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Seidenst=C3=BCcker?= Date: Fri, 6 Feb 2026 16:20:00 +0100 Subject: [PATCH] Static at beginning GCC: 'static' is not at beginning of declaration [-Wold-style-declaration] (cherry picked from commit 0c7d4d5a89ce23bc511fbd4b5113c043f7754486) --- src/video/n3ds/SDL_n3dsswkb.c | 2 +- test/testsymbols.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/n3ds/SDL_n3dsswkb.c b/src/video/n3ds/SDL_n3dsswkb.c index 16e6c5f27b..dd54a4c9e4 100644 --- a/src/video/n3ds/SDL_n3dsswkb.c +++ b/src/video/n3ds/SDL_n3dsswkb.c @@ -28,7 +28,7 @@ #include "SDL_n3dsswkb.h" static SwkbdState sw_keyboard; -const static size_t BUFFER_SIZE = 256; +static const size_t BUFFER_SIZE = 256; void N3DS_SwkbInit(void) { diff --git a/test/testsymbols.c b/test/testsymbols.c index 7c68fd15c3..ab1e9dec8e 100644 --- a/test/testsymbols.c +++ b/test/testsymbols.c @@ -66,7 +66,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(void); extern SDL_DECLSPEC void SDLCALL JNI_OnLoad(void); -const static struct { +static const struct { const char *name; SDL_FunctionPointer address; } sdl_symbols[] = {