From: Andrew Reynolds Date: Tue, 26 Mar 2019 15:03:29 +0000 (-0500) Subject: Fix a few warnings (#2898) X-Git-Tag: cvc5-1.0.0~4212 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecb0b1c2c656b70632b46021bcbb0ba4fb71ee2a;p=cvc5.git Fix a few warnings (#2898) --- diff --git a/src/theory/datatypes/datatypes_rewriter.cpp b/src/theory/datatypes/datatypes_rewriter.cpp index 507bbfdd1..ae21a0a60 100644 --- a/src/theory/datatypes/datatypes_rewriter.cpp +++ b/src/theory/datatypes/datatypes_rewriter.cpp @@ -364,7 +364,8 @@ RewriteResponse DatatypesRewriter::rewriteSelector(TNode in) // APPLY_SELECTOR) is given by an attribute and obtained via indexOf below // The argument is only valid if it is the proper constructor. selectorIndex = Datatype::indexOf(selector); - if (selectorIndex < 0 || selectorIndex >= c.getNumArgs()) + if (selectorIndex < 0 + || selectorIndex >= static_cast(c.getNumArgs())) { selectorIndex = -1; } diff --git a/src/theory/strings/theory_strings.cpp b/src/theory/strings/theory_strings.cpp index 4e939e47b..0017ced5c 100644 --- a/src/theory/strings/theory_strings.cpp +++ b/src/theory/strings/theory_strings.cpp @@ -1626,7 +1626,6 @@ void TheoryStrings::checkExtfEval( int effort ) { einfo.d_exp.insert(einfo.d_exp.end(), exp[i].begin(), exp[i].end()); // inference is rewriting the substituted node Node nrc = Rewriter::rewrite( sn ); - Kind nrck = nrc.getKind(); //if rewrites to a constant, then do the inference and mark as reduced if( nrc.isConst() ){ if( effort<3 ){