Просмотр исходного кода

Static at beginning

GCC: 'static' is not at beginning of declaration [-Wold-style-declaration]
Max Seidenstücker 3 недель назад
Родитель
Сommit
0c7d4d5a89
2 измененных файлов с 2 добавлено и 2 удалено
  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"
 
 static SwkbdState sw_keyboard;
-const static size_t BUFFER_SIZE = 256;
+static const size_t BUFFER_SIZE = 256;
 
 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>
 
-const static struct {
+static const struct {
     const char *name;
     SDL_FunctionPointer address;
 } sdl_symbols[] = {