Skip to content
Snippets Groups Projects
Commit e32d231b authored by Francois Bertel's avatar Francois Bertel
Browse files

COMP:Fixed warnings.

parent 094721b4
No related branches found
No related tags found
No related merge requests found
...@@ -521,7 +521,7 @@ unsigned int CommandLineArguments::GetLastArgument() ...@@ -521,7 +521,7 @@ unsigned int CommandLineArguments::GetLastArgument()
void CommandLineArguments::GenerateHelp() void CommandLineArguments::GenerateHelp()
{ {
kwsys_ios::ostringstream str; kwsys_ios::ostringstream str;
// Collapse all arguments into the map of vectors of all arguments that do // Collapse all arguments into the map of vectors of all arguments that do
// the same thing. // the same thing.
CommandLineArguments::Internal::CallbacksMap::iterator it; CommandLineArguments::Internal::CallbacksMap::iterator it;
...@@ -660,7 +660,7 @@ void CommandLineArguments::GenerateHelp() ...@@ -660,7 +660,7 @@ void CommandLineArguments::GenerateHelp()
skip = cc; skip = cc;
} }
} }
str.write(ptr, skip); str.write(ptr, static_cast<kwsys_stl::streamsize>(skip));
str << kwsys_ios::endl; str << kwsys_ios::endl;
ptr += skip; ptr += skip;
len -= skip; len -= skip;
...@@ -701,7 +701,7 @@ void CommandLineArguments::PopulateVariable( ...@@ -701,7 +701,7 @@ void CommandLineArguments::PopulateVariable(
int* variable, const kwsys_stl::string& value) int* variable, const kwsys_stl::string& value)
{ {
char* res = 0; char* res = 0;
*variable = strtol(value.c_str(), &res, 10); *variable = static_cast<int>(strtol(value.c_str(), &res, 10));
//if ( res && *res ) //if ( res && *res )
// { // {
// Can handle non-int // Can handle non-int
...@@ -759,7 +759,7 @@ void CommandLineArguments::PopulateVariable( ...@@ -759,7 +759,7 @@ void CommandLineArguments::PopulateVariable(
kwsys_stl::vector<int>* variable, const kwsys_stl::string& value) kwsys_stl::vector<int>* variable, const kwsys_stl::string& value)
{ {
char* res = 0; char* res = 0;
variable->push_back(strtol(value.c_str(), &res, 10)); variable->push_back(static_cast<int>(strtol(value.c_str(), &res, 10)));
//if ( res && *res ) //if ( res && *res )
// { // {
// Can handle non-int // Can handle non-int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment