Explorar o código

Fixed declaration-after-statement warning

Sam Lantinga %!s(int64=3) %!d(string=hai) anos
pai
achega
53e685168d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/SDL_utils.c

+ 3 - 1
src/SDL_utils.c

@@ -34,7 +34,9 @@ int SDL_powerof2(int x)
     }
 
     /* This trick works for 32-bit values */
-    SDL_COMPILE_TIME_ASSERT(SDL_powerof2, sizeof(x) == sizeof(Uint32));
+    {
+        SDL_COMPILE_TIME_ASSERT(SDL_powerof2, sizeof(x) == sizeof(Uint32));
+    }
     value = x;
     value -= 1;
     value |= value >> 1;