Explorar el Código

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

Ozkan Sezer hace 4 años
padre
commit
781caec2b2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/video/wayland/SDL_waylandevents.c

+ 2 - 1
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);