Fixed some compiler warnings. default tip
authorRyan C. Gordon <icculus@icculus.org>
Wed, 28 Nov 2018 00:23:08 -0500
changeset 1652 357f25632ea0
parent 1650 8b3cc36531c6
Fixed some compiler warnings.
src/physfs.c
--- a/src/physfs.c	Tue Nov 27 23:53:33 2018 -0500
+++ b/src/physfs.c	Wed Nov 28 00:23:08 2018 -0500
@@ -88,7 +88,7 @@
 static PHYSFS_Archiver **archivers = NULL;
 static PHYSFS_ArchiveInfo **archiveInfo = NULL;
 static volatile size_t numArchivers = 0;
-static int longest_root = 0;
+static size_t longest_root = 0;
 
 /* mutexes ... */
 static void *errorLock = NULL;     /* protects error message list.        */
@@ -2230,7 +2230,6 @@
 /* This must hold the stateLock before calling. */
 static int doDelete(const char *_fname, char *fname)
 {
-    int retval;
     DirHandle *h = writeDir;
     BAIL_IF_ERRPASS(!sanitizePlatformIndependentPathWithRoot(h, _fname, fname), 0);
     BAIL_IF_ERRPASS(!verifyPath(h, &fname, 0), 0);