- more mac warnigns cleanup

This commit is contained in:
SoftCoder 2017-01-30 11:53:32 -08:00
parent 0873493377
commit 48fb05b1a4
1 changed files with 2 additions and 2 deletions

View File

@ -1326,7 +1326,7 @@ vector<string> getFolderTreeContentsListRecursively(const string &path, const st
#if defined(__APPLE__) || defined(__FreeBSD__) #if defined(__APPLE__) || defined(__FreeBSD__)
struct stat statStruct; struct stat statStruct;
// only get if dir.. // only get if dir..
int actStat = lstat( globbuf.gl_pathv[ i], &statStruct); lstat( globbuf.gl_pathv[ i], &statStruct);
if( S_ISDIR(statStruct.st_mode) == 0) if( S_ISDIR(statStruct.st_mode) == 0)
continue; continue;
#endif #endif
@ -1465,7 +1465,7 @@ vector<std::pair<string,uint32> > getFolderTreeContentsCheckSumListRecursively(c
#if defined(__APPLE__) || defined(__FreeBSD__) #if defined(__APPLE__) || defined(__FreeBSD__)
struct stat statStruct; struct stat statStruct;
// only get if dir.. // only get if dir..
int actStat = lstat( globbuf.gl_pathv[ i], &statStruct); lstat( globbuf.gl_pathv[ i], &statStruct);
if( S_ISDIR(statStruct.st_mode) == 0) if( S_ISDIR(statStruct.st_mode) == 0)
continue; continue;
#endif #endif