SDL: SDL_waylandevents.c (keyboard_handle_keymap): silenced -Wwrite-strings .

From 781caec2b24fa70d61f61aa5d92493e02e1e26e4 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 15 Nov 2021 00:55:24 +0300
Subject: [PATCH] SDL_waylandevents.c (keyboard_handle_keymap): silenced
 -Wwrite-strings .

---
 src/video/wayland/SDL_waylandevents.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c
index 5f20b468ba..da2903ea6e 100644
--- a/src/video/wayland/SDL_waylandevents.c
+++ b/src/video/wayland/SDL_waylandevents.c
@@ -749,7 +749,8 @@ keyboard_handle_keymap(void *data, struct wl_keyboard *keyboard,
                        uint32_t format, int fd, uint32_t size)
 {
     struct SDL_WaylandInput *input = data;
-    char *map_str, *locale;
+    char *map_str;
+    const char *locale;
 
     if (!data) {
         close(fd);