Przeglądaj źródła

Fix -Wdiscarded-qualifiers warning

src/physfs.c:1119:9: warning: assignment discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
 1119 |     ptr = strrchr(argv0, dirsep);
      |         ^
Anonymous Maarten 1 tydzień temu
rodzic
commit
ce5af38db2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/physfs.c

+ 1 - 1
src/physfs.c

@@ -1106,7 +1106,7 @@ static char *calculateBaseDir(const char *argv0)
 {
 {
     const char dirsep = __PHYSFS_platformDirSeparator;
     const char dirsep = __PHYSFS_platformDirSeparator;
     char *retval = NULL;
     char *retval = NULL;
-    char *ptr = NULL;
+    const char *ptr = NULL;
 
 
     /* Give the platform layer first shot at this. */
     /* Give the platform layer first shot at this. */
     retval = __PHYSFS_platformCalcBaseDir(argv0);
     retval = __PHYSFS_platformCalcBaseDir(argv0);