From fe4d7620ddd33797f554909f9c9ca99f0a192e10 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Wed, 4 Mar 2026 08:28:56 +1100 Subject: [PATCH] cursor: fix discards 'const' qualifier Fixes: ../cursor/xcursor.c: In function 'xcursor_next_path': ../cursor/xcursor.c:610:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 610 | char *colon = strchr(path, ':'); | ^~~~~~ Signed-off-by: Rudi Heitbaum --- cursor/xcursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cursor/xcursor.c b/cursor/xcursor.c index 6e54cdbd..28aab045 100644 --- a/cursor/xcursor.c +++ b/cursor/xcursor.c @@ -607,7 +607,7 @@ xcursor_build_fullname(const char *dir, const char *subdir, const char *file) static const char * xcursor_next_path(const char *path) { - char *colon = strchr(path, ':'); + const char *colon = strchr(path, ':'); if (!colon) return NULL;