From 829b813bc1eaaef04de67472296af8d28701544d Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Tue, 10 Mar 2020 09:27:19 -0700 Subject: [PATCH] Fix -Wshadow warnings in sygus_grammar_cons.cpp. (#3986) --- src/theory/quantifiers/sygus/sygus_grammar_cons.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp b/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp index 17cc6bf9e..07340841c 100644 --- a/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp +++ b/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp @@ -841,10 +841,10 @@ void CegGrammarConstructor::mkSygusDefaultGrammar( std::vector cargsBinary; cargsBinary.push_back(unres_t); cargsBinary.push_back(unres_t); - for (const Kind k : bin_kinds) + for (const Kind kind : bin_kinds) { - Trace("sygus-grammar-def") << "...add for " << k << std::endl; - sdts[i].addConstructor(k, cargsBinary); + Trace("sygus-grammar-def") << "...add for " << kind << std::endl; + sdts[i].addConstructor(kind, cargsBinary); } } else if (types[i].isDatatype()) -- 2.30.2