SDL: Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'.

From 3e54061fa8f6f2af530f3643796dfb38c9f56935 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 4 Dec 2023 19:45:54 -0800
Subject: [PATCH] Fixed warning C6011: Dereferencing NULL pointer
 'SDL_disabled_events[hi]'.

---
 src/events/SDL_events.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/events/SDL_events.c b/src/events/SDL_events.c
index 040e5bdc8bfc..93588772c20a 100644
--- a/src/events/SDL_events.c
+++ b/src/events/SDL_events.c
@@ -1355,7 +1355,14 @@ void SDL_SetEventEnabled(Uint32 type, SDL_bool enabled)
 
     if (enabled != current_state) {
         if (enabled) {
+#ifdef _MSC_VER /* Visual Studio analyzer can't tell that SDL_disabled_events[hi] isn't NULL if enabled is true */
+#pragma warning(push)
+#pragma warning(disable : 6011)
+#endif
             SDL_disabled_events[hi]->bits[lo / 32] &= ~(1 << (lo & 31));
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
 
             /* Gamepad events depend on joystick events */
             switch (type) {