summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-23 19:13:49 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-08-23 19:13:49 (GMT)
commit13d4f89dfe5bbe51fca76f945b4819a3ced1c888 (patch)
treeaf7b70c21bdb61058895629f1faa3e122561968a
parente1d5c0c72908cb4b104e36702ab6007ab4111dc3 (diff)
downloadCMake-13d4f89dfe5bbe51fca76f945b4819a3ced1c888.zip
CMake-13d4f89dfe5bbe51fca76f945b4819a3ced1c888.tar.gz
CMake-13d4f89dfe5bbe51fca76f945b4819a3ced1c888.tar.bz2
compiler warnings
-rw-r--r--Source/cmCPluginAPI.cxx4
-rw-r--r--Source/cmCacheManager.h2
-rw-r--r--Source/cmVTKMakeInstantiatorCommand.cxx3
3 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 6817266..dc5c9fd 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -306,7 +306,7 @@ void cmExpandSourceListArguments(void *arg,
args2.push_back(args[i]);
}
mf->ExpandSourceListArguments(args2, result, startArgumentIndex);
- int resargc = result.size();
+ int resargc = static_cast<int>(result.size());
char **resargv = NULL;
if (resargc)
{
@@ -341,7 +341,7 @@ int cmGetTotalArgumentSize(int argc, char **argv)
{
if (argv[i])
{
- result = result + strlen(argv[i]);
+ result = result + static_cast<int>(strlen(argv[i]));
}
}
return result;
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 3510624..feb1e68 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -100,7 +100,7 @@ public:
///! Get the number of entries in the cache
CM_EXPORT int GetSize() {
- return m_Cache.size(); }
+ return static_cast<int>(m_Cache.size()); }
///! Break up a line like VAR:type="value" into var, type and value
static bool ParseEntry(const char* entry,
diff --git a/Source/cmVTKMakeInstantiatorCommand.cxx b/Source/cmVTKMakeInstantiatorCommand.cxx
index ae02e4b..c54e043 100644
--- a/Source/cmVTKMakeInstantiatorCommand.cxx
+++ b/Source/cmVTKMakeInstantiatorCommand.cxx
@@ -193,7 +193,8 @@ cmVTKMakeInstantiatorCommand
// Actually generate the code in the file.
this->OldGenerateCreationFile(fout.GetStream(),
- block*groupSize, thisBlockSize);
+ block*groupSize,
+ static_cast<int>(thisBlockSize));
}
// Add the generated source file into the source list.