// If not, do nothing.
time_t TimeStampModTime = StatBuf.st_mtime;
time_t CurrentTime = time(0);
- if (CurrentTime - TimeStampModTime <= HSOpts.ModuleCachePruneInterval) {
+ if (CurrentTime - TimeStampModTime <= time_t(HSOpts.ModuleCachePruneInterval))
return;
- }
// Write a new timestamp file so that nobody else attempts to prune.
// There is a benign race condition here, if two Clang instances happen to
// If the file has been used recently enough, leave it there.
time_t FileAccessTime = StatBuf.st_atime;
- if (CurrentTime - FileAccessTime <= HSOpts.ModuleCachePruneAfter) {
- RemovedAllFiles = false;;
+ if (CurrentTime - FileAccessTime <=
+ time_t(HSOpts.ModuleCachePruneAfter)) {
+ RemovedAllFiles = false;
continue;
}