checkwps: Fix warning uncovered with GCC16

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Mon, 25 May 2026 09:10:45 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 9a142ee02d32db097355d6424cccf80f7718f100
Author: Solomon Peachy <[email protected]>
Date:   Mon May 25 09:10:08 2026 -0400

    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

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)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs