From: havoc Date: Sun, 11 Mar 2018 18:53:55 +0000 (+0000) Subject: Fix a couple warnings for unused variables in listdirectory on WIN32. X-Git-Tag: xonotic-v0.8.5~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6eaee3a4fc5ed57d1a36208226c6c1f891179a35;p=xonotic%2Fdarkplaces.git Fix a couple warnings for unused variables in listdirectory on WIN32. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12345 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=ca4d37309cf7721bd7fd42d2a95ac5db7d057d01 --- diff --git a/filematch.c b/filematch.c index 95d0e650..14c1d160 100644 --- a/filematch.c +++ b/filematch.c @@ -164,8 +164,7 @@ static void adddirentry(stringlist_t *list, const char *path, const char *name) #ifdef WIN32 void listdirectory(stringlist_t *list, const char *basepath, const char *path) { - int i; - char pattern[4096], *c; + char pattern[4096]; WIN32_FIND_DATA n_file; HANDLE hFile; strlcpy (pattern, basepath, sizeof(pattern));