summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorChristoph GrĂ¼ninger <foss@grueninger.de>2024-02-14 13:10:49 (GMT)
committerChristoph GrĂ¼ninger <foss@grueninger.de>2024-02-14 19:46:02 (GMT)
commit95a9494974200e9aef67e59bbb6e87c5bb09f23d (patch)
treec12de35bc51e46ef2648bd28a0158623179e90f6 /Source/CPack
parent53d0d80cca6d24e1f61c2d42e173e54f8570400c (diff)
downloadCMake-95a9494974200e9aef67e59bbb6e87c5bb09f23d.zip
CMake-95a9494974200e9aef67e59bbb6e87c5bb09f23d.tar.gz
CMake-95a9494974200e9aef67e59bbb6e87c5bb09f23d.tar.bz2
Remove unused variable
Found by Cppcheck.
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackInnoSetupGenerator.cxx2
-rw-r--r--Source/CPack/cmCPackSTGZGenerator.cxx2
2 files changed, 0 insertions, 4 deletions
diff --git a/Source/CPack/cmCPackInnoSetupGenerator.cxx b/Source/CPack/cmCPackInnoSetupGenerator.cxx
index bf90b06..fcd0a5d 100644
--- a/Source/CPack/cmCPackInnoSetupGenerator.cxx
+++ b/Source/CPack/cmCPackInnoSetupGenerator.cxx
@@ -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;
diff --git a/Source/CPack/cmCPackSTGZGenerator.cxx b/Source/CPack/cmCPackSTGZGenerator.cxx
index 1248d17..2673fee 100644
--- a/Source/CPack/cmCPackSTGZGenerator.cxx
+++ b/Source/CPack/cmCPackSTGZGenerator.cxx
@@ -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");