Commit 2c154fec authored by Craig Scott's avatar Craig Scott
Browse files

Warnings: Remove unused variables

parent 1504c6db
...@@ -360,8 +360,6 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories( ...@@ -360,8 +360,6 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
return 0; return 0;
} }
files = gl.GetFiles(); files = gl.GetFiles();
std::vector<std::string>::iterator gfit;
std::vector<cmsys::RegularExpression>::iterator regIt;
for (std::string const& gf : files) { for (std::string const& gf : files) {
bool skip = false; bool skip = false;
std::string inFile = gf; std::string inFile = gf;
...@@ -1499,7 +1497,6 @@ cmCPackComponent* cmCPackGenerator::GetComponent( ...@@ -1499,7 +1497,6 @@ cmCPackComponent* cmCPackGenerator::GetComponent(
if (installTypes && *installTypes) { if (installTypes && *installTypes) {
std::vector<std::string> installTypesVector; std::vector<std::string> installTypesVector;
cmSystemTools::ExpandListArgument(installTypes, installTypesVector); cmSystemTools::ExpandListArgument(installTypes, installTypesVector);
std::vector<std::string>::iterator installTypesIt;
for (std::string const& installType : installTypesVector) { for (std::string const& installType : installTypesVector) {
component->InstallationTypes.push_back( component->InstallationTypes.push_back(
this->GetInstallationType(projectName, installType)); this->GetInstallationType(projectName, installType));
...@@ -1511,7 +1508,6 @@ cmCPackComponent* cmCPackGenerator::GetComponent( ...@@ -1511,7 +1508,6 @@ cmCPackComponent* cmCPackGenerator::GetComponent(
if (depends && *depends) { if (depends && *depends) {
std::vector<std::string> dependsVector; std::vector<std::string> dependsVector;
cmSystemTools::ExpandListArgument(depends, dependsVector); cmSystemTools::ExpandListArgument(depends, dependsVector);
std::vector<std::string>::iterator dependIt;
for (std::string const& depend : dependsVector) { for (std::string const& depend : dependsVector) {
cmCPackComponent* child = GetComponent(projectName, depend); cmCPackComponent* child = GetComponent(projectName, depend);
component->Dependencies.push_back(child); component->Dependencies.push_back(child);
......
...@@ -253,7 +253,6 @@ int cmCommandArgumentParserHelper::ParseString(const char* str, int verb) ...@@ -253,7 +253,6 @@ int cmCommandArgumentParserHelper::ParseString(const char* str, int verb)
void cmCommandArgumentParserHelper::CleanupParser() void cmCommandArgumentParserHelper::CleanupParser()
{ {
std::vector<char*>::iterator sit;
for (char* var : this->Variables) { for (char* var : this->Variables) {
delete[] var; delete[] var;
} }
......
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