From eb6746c1d6ffa5f9f44ff44cb85fee93997ea299 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 23 May 2026 21:11:40 -0400 Subject: [PATCH] albumart: fix warning with GCC16 apps/recorder/albumart.c:68:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 68 | sep = strrchr(fullpath, '/'); | ^ Change-Id: Ifd25623c8fa649302e44421316671aec2de9f037 --- apps/recorder/albumart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index 50794c06c8..dfa94dd9ac 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -56,9 +56,9 @@ * The function return parameter is a pointer to the filename * inside the given fullpath. */ -static char* strip_filename(char* buf, int buf_size, const char* fullpath) +static const char* strip_filename(char* buf, int buf_size, const char* fullpath) { - char* sep; + const char* sep; int len; if (!buf || buf_size <= 0 || !fullpath)