sdl12-compat: silence a Watcom C++ W472 warning

From 424f7155ee86a32bbee339644f2439b642c34870 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 24 Jan 2026 10:33:02 +0300
Subject: [PATCH] silence a Watcom C++ W472 warning

SDL12_compat.c(3030): Warning! W472: col(165) expression with side effect in sizeof discarded
---
 src/SDL12_compat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index db9f4092e..9e35e19c1 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -3026,8 +3026,9 @@ SDL_QuitSubSystem(Uint32 sdl12flags)
 DECLSPEC12 void SDLCALL
 SDL_Quit(void)
 {
+    SDL_bool noquitvideo = SDL12Compat_GetHintBoolean("SDL12COMPAT_NO_QUIT_VIDEO", SDL_FALSE);
     SDL_QuitSubSystem(SDL_WasInit(0) | SDL12_INIT_CDROM);
-    SDL_assert((InitializedSubsystems20 == 0) || (SDL12Compat_GetHintBoolean("SDL12COMPAT_NO_QUIT_VIDEO", SDL_FALSE) && (InitializedSubsystems20 == SDL_INIT_VIDEO)));
+    SDL_assert((InitializedSubsystems20 == 0) || (noquitvideo && (InitializedSubsystems20 == SDL_INIT_VIDEO)));
 }
 
 DECLSPEC12 void SDLCALL