From dcf8f960c70b52baa2da9a30538e1f3e88f584b4 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 20 May 2026 13:02:41 -0400
Subject: [PATCH] assert: fixed compiler warning with LLVM +
x86_64-pc-windows-msvc target.
Fixes #15578.
(cherry picked from commit 9a56bc66b5a4c824550a58207ba498d8f7d7d43f)
---
include/SDL3/SDL_assert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/SDL3/SDL_assert.h b/include/SDL3/SDL_assert.h
index fb6746235ba3e..6c8a47d004a72 100644
--- a/include/SDL3/SDL_assert.h
+++ b/include/SDL3/SDL_assert.h
@@ -265,7 +265,7 @@ disable assertions.
*/
#define SDL_NULL_WHILE_LOOP_CONDITION (0)
-#elif defined(_MSC_VER) /* Avoid /W4 warnings. */
+#elif defined(_MSC_VER) && !defined(__clang__) /* Avoid /W4 warnings. */
/* "while (0,0)" fools Microsoft's compiler's /W4 warning level into thinking
this condition isn't constant. And looks like an owl's face! */
#define SDL_NULL_WHILE_LOOP_CONDITION (0,0)