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

This commit is contained in:
Ozkan Sezer 2021-11-15 00:55:24 +03:00
parent 5c067906ba
commit 781caec2b2
1 changed files with 2 additions and 1 deletions

View File

@ -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);