diff --git a/Source/cmMarkAsAdvancedCommand.cxx b/Source/cmMarkAsAdvancedCommand.cxx index e88d1e2b1..ed7d7a514 100644 --- a/Source/cmMarkAsAdvancedCommand.cxx +++ b/Source/cmMarkAsAdvancedCommand.cxx @@ -48,7 +48,7 @@ bool cmMarkAsAdvancedCommand::InitialPass(std::vector const& args) this->SetError("called with incorrect number of arguments"); return false; } - for(int i =0; i < args.size(); ++i) + for(unsigned int i =0; i < args.size(); ++i) { std::string variable = args[i]; variable += "-ADVANCED";