From f536e6f3fb588e2cb8ab86a1f4eab75db011cefa Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Wed, 24 Mar 2021 18:22:38 +1100 Subject: CPackIFW: Remove redundant variable assignment This was showing up in cppcheck results. --- Source/CPack/IFW/cmCPackIFWPackage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12