From 04039407e6308070c148de0d5e93640ec1b0a341 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Thu, 5 Mar 2020 11:42:54 -0800 Subject: Enable -Wshadow and fix warnings. (#3909) Fixes all -Wshadow warnings and enables the -Wshadow compile flag globally. Co-authored-by: Clark Barrett Co-authored-by: Andres Noetzli Co-authored-by: Aina Niemetz Co-authored-by: Alex Ozdemir Co-authored-by: makaimann Co-authored-by: yoni206 Co-authored-by: Andrew Reynolds Co-authored-by: AleksandarZeljic Co-authored-by: Caleb Donovick Co-authored-by: Amalee Co-authored-by: Scott Kovach Co-authored-by: ntsis --- src/smt/smt_engine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/smt/smt_engine.cpp') diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index cde85a186..3e9b81263 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -3184,8 +3184,7 @@ void SmtEnginePrivate::collectSkolems(TNode n, set& skolemSet, unordered_ size_t sz = n.getNumChildren(); if (sz == 0) { - IteSkolemMap::iterator it = getIteSkolemMap().find(n); - if (it != getIteSkolemMap().end()) + if (getIteSkolemMap().find(n) != getIteSkolemMap().end()) { skolemSet.insert(n); } @@ -3210,11 +3209,12 @@ bool SmtEnginePrivate::checkForBadSkolems(TNode n, TNode skolem, unordered_map