From b57d8960e8581b7effbdeab70936a0b2e1025a30 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 28 Nov 2018 00:23:08 -0500 Subject: [PATCH] Fixed some compiler warnings. --- src/physfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/physfs.c b/src/physfs.c index edfc532a..a16ad8c2 100644 --- a/src/physfs.c +++ b/src/physfs.c @@ -88,7 +88,7 @@ static int allowSymLinks = 0; 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 @@ int PHYSFS_mkdir(const char *_dname) /* 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);