From eecfd759fc015dc7d492f6e64530243cef52ffe5 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 2 May 2026 05:55:11 +0200 Subject: [PATCH] Fix -Wdiscarded-qualifiers warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/physfs.c:1119:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1119 | ptr = strrchr(argv0, dirsep); | ^ --- src/physfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physfs.c b/src/physfs.c index afc1c9c8..68213b94 100644 --- a/src/physfs.c +++ b/src/physfs.c @@ -1106,7 +1106,7 @@ static char *calculateBaseDir(const char *argv0) { const char dirsep = __PHYSFS_platformDirSeparator; char *retval = NULL; - char *ptr = NULL; + const char *ptr = NULL; /* Give the platform layer first shot at this. */ retval = __PHYSFS_platformCalcBaseDir(argv0);