summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-03-24 07:22:38 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-03-24 07:23:06 (GMT)
commitf536e6f3fb588e2cb8ab86a1f4eab75db011cefa (patch)
treeb97d7538515866402fd02d92e4784a197e21aa0b /Source/CPack
parent88060f471766222c54a080900f73abf29586a6f4 (diff)
downloadCMake-f536e6f3fb588e2cb8ab86a1f4eab75db011cefa.zip
CMake-f536e6f3fb588e2cb8ab86a1f4eab75db011cefa.tar.gz
CMake-f536e6f3fb588e2cb8ab86a1f4eab75db011cefa.tar.bz2
CPackIFW: Remove redundant variable assignment
This was showing up in cppcheck results.
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/IFW/cmCPackIFWPackage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWPackage.cxx b/Source/CPack/IFW/cmCPackIFWPackage.cxx
index c4bd7f1..5191c96 100644
--- a/Source/CPack/IFW/cmCPackIFWPackage.cxx
+++ b/Source/CPack/IFW/cmCPackIFWPackage.cxx
@@ -31,7 +31,7 @@ cmCPackIFWPackage::DependenceStruct::DependenceStruct(
const std::string& dependence)
{
// Search compare section
- size_t pos = std::string::npos;
+ size_t pos;
if ((pos = dependence.find("<=")) != std::string::npos) {
this->Compare.Type = cmCPackIFWPackage::CompareLessOrEqual;
this->Compare.Value = dependence.substr(pos + 2);