From 93e14497648352ec2a4ecd250258d3a7c21b3247 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 14 Oct 2020 15:50:04 +0300 Subject: [PATCH] SDL_waylanddatamanager.c (mime_data_list_add): constify the buffer param Fixes -Wdiscarded-qualifiers warnings from Wayland_data_source_add_data() --- Xcode/SDL/SDL.xcodeproj/project.pbxproj | 0 src/video/wayland/SDL_waylanddatamanager.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 Xcode/SDL/SDL.xcodeproj/project.pbxproj diff --git a/Xcode/SDL/SDL.xcodeproj/project.pbxproj b/Xcode/SDL/SDL.xcodeproj/project.pbxproj old mode 100755 new mode 100644 diff --git a/src/video/wayland/SDL_waylanddatamanager.c b/src/video/wayland/SDL_waylanddatamanager.c index 2a4c9c5b0..c72c19aa4 100644 --- a/src/video/wayland/SDL_waylanddatamanager.c +++ b/src/video/wayland/SDL_waylanddatamanager.c @@ -181,7 +181,7 @@ mime_data_list_find(struct wl_list* list, static int mime_data_list_add(struct wl_list* list, const char* mime_type, - void* buffer, size_t length) + const void* buffer, size_t length) { int status = 0; size_t mime_type_length = 0;