Fix style warning in cmsystemtools, cosmetic change to ctest code

This commit is contained in:
Zach Mullen 2009-11-05 11:37:47 -05:00
parent 9aa4e134b5
commit 9f105a3f6d
2 changed files with 4 additions and 6 deletions

View File

@ -407,12 +407,9 @@ void cmCTestMultiProcessHandler::CheckResume()
fin.close();
}
}
else
else if(cmSystemTools::FileExists(fname.c_str(), true))
{
if(cmSystemTools::FileExists(fname.c_str(), true))
{
cmSystemTools::RemoveFile(fname.c_str());
}
cmSystemTools::RemoveFile(fname.c_str());
}
}

View File

@ -1910,7 +1910,8 @@ list_item_verbose(FILE *out, struct archive_entry *entry)
tim = archive_entry_mtime(entry);
#define HALF_YEAR (time_t)365 * 86400 / 2
#if defined(_WIN32) && !defined(__CYGWIN__)
#define DAY_FMT "%d" /* Windows' strftime function does not support %e format. */
/* Windows' strftime function does not support %e format. */
#define DAY_FMT "%d"
#else
#define DAY_FMT "%e" /* Day number without leading zeros */
#endif