SDL: Android: fix warning: jump from this goto statement to its label is incompatible with C++ [-Wjump-bypasses-init]

From e179f1ad40bc9748c48e9db1b8ba2edbf47d26f8 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Mon, 2 Nov 2026 16:48:07 +0100
Subject: [PATCH] Android: fix warning: jump from this goto statement to its
 label is incompatible with C++ [-Wjump-bypasses-init]

(cherry picked from commit 133153507fbef3041fbcb394262af62f74da5912)
---
 src/audio/openslES/SDL_openslES.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/audio/openslES/SDL_openslES.c b/src/audio/openslES/SDL_openslES.c
index 0f49585d55f63..b84dfd7a7fa81 100644
--- a/src/audio/openslES/SDL_openslES.c
+++ b/src/audio/openslES/SDL_openslES.c
@@ -422,6 +422,8 @@ static void OPENSLES_DestroyPCMPlayer(SDL_AudioDevice *device)
 
 static bool OPENSLES_CreatePCMPlayer(SDL_AudioDevice *device)
 {
+    struct SDL_PrivateAudioData *audiodata = NULL;
+
     /* according to https://developer.android.com/ndk/guides/audio/opensl/opensl-for-android,
        Android's OpenSL ES only supports Uint8 and _littleendian_ Sint16.
        (and float32, with an extension we use, below.) */
@@ -583,7 +585,7 @@ static bool OPENSLES_CreatePCMPlayer(SDL_AudioDevice *device)
     }
 #endif
 
-    struct SDL_PrivateAudioData *audiodata = device->hidden;
+    audiodata = device->hidden;
 
     // Create the audio buffer semaphore
     audiodata->playsem = SDL_CreateSemaphore(NUM_BUFFERS - 1);