SDL: SDL_windowsevents.c: fixed -Werror=unused-variable

From f8cce4ead45bb4cd1aad00292ba60873ad5d09bf Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 12 Jan 2024 18:56:10 +0300
Subject: [PATCH] SDL_windowsevents.c: fixed -Werror=unused-variable

---
 src/video/windows/SDL_windowsevents.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index 8a963cb85ca5..bc67d39f3eea 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -1542,11 +1542,11 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
     case WM_DPICHANGED:
         /* Windows 8.1+ */
         {
-            const int newDPI = HIWORD(wParam);
             RECT *const suggestedRect = (RECT *)lParam;
             int w, h;
 
 #ifdef HIGHDPI_DEBUG
+            const int newDPI = HIWORD(wParam);
             SDL_Log("WM_DPICHANGED: to %d\tsuggested rect: (%d, %d), (%dx%d)\n", newDPI,
                     suggestedRect->left, suggestedRect->top, suggestedRect->right - suggestedRect->left, suggestedRect->bottom - suggestedRect->top);
 #endif