From 53e685168d97994b3d5a1cfd0278ae3338521615 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 18 Jul 2022 07:31:23 -0700
Subject: [PATCH] Fixed declaration-after-statement warning
---
src/SDL_utils.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/SDL_utils.c b/src/SDL_utils.c
index 70cb8ca5e9c..99ed1ac8615 100644
--- a/src/SDL_utils.c
+++ b/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;