From 9a142ee02d32db097355d6424cccf80f7718f100 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 25 May 2026 09:10:08 -0400 Subject: [PATCH] checkwps: Fix warning uncovered with GCC16 /home/rbbuild/rockbox/tools/checkwps/checkwps.c: In function 'main': /home/rbbuild/rockbox/tools/checkwps/checkwps.c:329:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 329 | char *ext = strrchr(name, '.'); | ^~~~~~~ Change-Id: I0c62600f269456cb81d0e3eaf77839c9103f2e41 --- tools/checkwps/checkwps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 6c4e404800..8549c9c0a0 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c @@ -326,7 +326,7 @@ int main(int argc, char **argv) * flawed wps */ while (argv[filearg]) { const char* name = argv[filearg++]; - char *ext = strrchr(name, '.'); + const char *ext = strrchr(name, '.'); struct skin_stats stats; printf("Checking %s...\n", name); if (!ext)