Commit 6772b9f9 authored by Ken Martin's avatar Ken Martin
Browse files

fix warnings

parent aea238e0
...@@ -119,7 +119,7 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, ...@@ -119,7 +119,7 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
static char envCC[5000]; static char envCC[5000];
std::string env = "CC=${CMAKE_C_COMPILER}"; std::string env = "CC=${CMAKE_C_COMPILER}";
mf->ExpandVariablesInString(env); mf->ExpandVariablesInString(env);
unsigned int size = env.size(); unsigned int size = static_cast<unsigned int>(env.size());
if(size > 4999) if(size > 4999)
{ {
size = 4999; size = 4999;
...@@ -148,7 +148,7 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, ...@@ -148,7 +148,7 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
{ {
std::string env = "CXX=${CMAKE_CXX_COMPILER}"; std::string env = "CXX=${CMAKE_CXX_COMPILER}";
mf->ExpandVariablesInString(env); mf->ExpandVariablesInString(env);
unsigned int size = env.size(); unsigned int size = static_cast<unsigned int>(env.size());
if(size > 4999) if(size > 4999)
{ {
size = 4999; size = 4999;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment