fix compiler warnings
This commit is contained in:
parent
7456fc360e
commit
bab4bcb570
|
@ -49,7 +49,7 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar
|
|||
size_t numfiles = dir.GetNumberOfFiles();
|
||||
for(size_t i =0; i < numfiles; ++i)
|
||||
{
|
||||
std::string file = dir.GetFile(i);
|
||||
std::string file = dir.GetFile(static_cast<unsigned long>(i));
|
||||
// Split the filename into base and extension
|
||||
std::string::size_type dotpos = file.rfind(".");
|
||||
if( dotpos != std::string::npos )
|
||||
|
|
|
@ -270,12 +270,12 @@ void cmTryCompileCommand::CleanupFiles(const char* binDir)
|
|||
size_t fileNum;
|
||||
for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum)
|
||||
{
|
||||
if (strcmp(dir.GetFile(fileNum),".") &&
|
||||
strcmp(dir.GetFile(fileNum),".."))
|
||||
if (strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".") &&
|
||||
strcmp(dir.GetFile(static_cast<unsigned long>(fileNum)),".."))
|
||||
{
|
||||
std::string fullPath = binDir;
|
||||
fullPath += "/";
|
||||
fullPath += dir.GetFile(fileNum);
|
||||
fullPath += dir.GetFile(static_cast<unsigned long>(fileNum));
|
||||
if(cmSystemTools::FileIsDirectory(fullPath.c_str()))
|
||||
{
|
||||
cmTryCompileCommand::CleanupFiles(fullPath.c_str());
|
||||
|
|
Loading…
Reference in New Issue