Explorar el Código

Static at beginning

GCC: 'static' is not at beginning of declaration [-Wold-style-declaration]
Max Seidenstücker hace 3 semanas
padre
commit
0c7d4d5a89
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/video/n3ds/SDL_n3dsswkb.c
  2. 1 1
      test/testsymbols.c

+ 1 - 1
src/video/n3ds/SDL_n3dsswkb.c

@@ -28,7 +28,7 @@
 #include "SDL_n3dsswkb.h"
 #include "SDL_n3dsswkb.h"
 
 
 static SwkbdState sw_keyboard;
 static SwkbdState sw_keyboard;
-const static size_t BUFFER_SIZE = 256;
+static const size_t BUFFER_SIZE = 256;
 
 
 void N3DS_SwkbInit(void)
 void N3DS_SwkbInit(void)
 {
 {

+ 1 - 1
test/testsymbols.c

@@ -68,7 +68,7 @@ extern SDL_DECLSPEC void SDLCALL JNI_OnLoad(void);
 
 
 #include <SDL3/SDL_openxr.h>
 #include <SDL3/SDL_openxr.h>
 
 
-const static struct {
+static const struct {
     const char *name;
     const char *name;
     SDL_FunctionPointer address;
     SDL_FunctionPointer address;
 } sdl_symbols[] = {
 } sdl_symbols[] = {