Fix a few warnings (#2898)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 26 Mar 2019 15:03:29 +0000 (10:03 -0500)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2019 15:03:29 +0000 (10:03 -0500)
src/theory/datatypes/datatypes_rewriter.cpp
src/theory/strings/theory_strings.cpp

index 507bbfdd178addcbeee42b62774a084cd182826c..ae21a0a6032c41ff6675fe81a1897d2557e369b2 100644 (file)
@@ -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<int>(c.getNumArgs()))
       {
         selectorIndex = -1;
       }
index 4e939e47b60de655804ca9436e31dd08a5765632..0017ced5cc01e3a82295fbe9d53faa8ca8147ee4 100644 (file)
@@ -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 ){