mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
Remove unused variable
Found by Cppcheck.
This commit is contained in:
@@ -7,7 +7,6 @@ file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#include <cctype>
|
||||
#include <cstdlib>
|
||||
#include <ostream>
|
||||
#include <stack>
|
||||
#include <utility>
|
||||
|
||||
#include "cmsys/RegularExpression.hxx"
|
||||
@@ -613,7 +612,6 @@ bool cmCPackInnoSetupGenerator::ProcessComponents()
|
||||
|
||||
// Components
|
||||
std::vector<cmCPackComponent*> downloadedComponents;
|
||||
std::stack<cmCPackComponentGroup*> groups;
|
||||
for (auto& i : Components) {
|
||||
cmCPackInnoSetupKeyValuePairs params;
|
||||
cmCPackComponent* component = &i.second;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "cmCPackSTGZGenerator.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -71,7 +70,6 @@ int cmCPackSTGZGenerator::PackageFiles()
|
||||
int cmCPackSTGZGenerator::GenerateHeader(std::ostream* os)
|
||||
{
|
||||
cmCPackLogger(cmCPackLog::LOG_DEBUG, "Writing header" << std::endl);
|
||||
std::ostringstream str;
|
||||
int counter = 0;
|
||||
|
||||
std::string inLicFile = this->GetOption("CPACK_RESOURCE_FILE_LICENSE");
|
||||
|
||||
@@ -563,7 +563,6 @@ int cmCTestScriptHandler::RunCurrentScript()
|
||||
|
||||
int cmCTestScriptHandler::CheckOutSourceDir()
|
||||
{
|
||||
std::string command;
|
||||
std::string output;
|
||||
int retVal;
|
||||
bool res;
|
||||
|
||||
@@ -920,7 +920,6 @@ bool cmCTestTestHandler::ComputeTestList()
|
||||
// Now create a final list of tests to run
|
||||
int cnt = 0;
|
||||
inREcnt = 0;
|
||||
std::string last_directory;
|
||||
ListOfTests finalList;
|
||||
for (cmCTestTestProperties& tp : this->TestList) {
|
||||
cnt++;
|
||||
|
||||
Reference in New Issue
Block a user