From 9f5a4c9b2257912a1835b0ff9149ed53bc4cdcfd Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 14 Jun 2018 19:04:52 -0400 Subject: [PATCH] Fix cppcheck warnings. No functional change intended. --- include/verilated_unordered_set_map.h | 2 +- src/V3AstNodes.h | 2 +- src/V3Case.cpp | 7 ++++++- src/V3Clean.cpp | 1 + src/V3Combine.cpp | 7 +++++-- src/V3LifePost.cpp | 3 ++- src/V3Name.cpp | 1 + src/V3Premit.cpp | 1 + src/V3SplitAs.cpp | 2 ++ 9 files changed, 20 insertions(+), 6 deletions(-) diff --git a/include/verilated_unordered_set_map.h b/include/verilated_unordered_set_map.h index 15e823a5c..59b13c4ac 100644 --- a/include/verilated_unordered_set_map.h +++ b/include/verilated_unordered_set_map.h @@ -409,7 +409,7 @@ template bodysp(); } return true; // All is fine @@ -467,7 +467,12 @@ private: public: // CONSTUCTORS explicit CaseVisitor(AstNetlist* nodep) { + m_caseWidth = 0; + m_caseItems = 0; m_caseNoOverlapsAllCovered = false; + for (uint32_t i=0; i<(1UL<