Fix warning (#3053)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Thu, 13 Jun 2019 06:33:17 +0000 (01:33 -0500)
committerAndres Noetzli <andres.noetzli@gmail.com>
Thu, 13 Jun 2019 06:33:16 +0000 (23:33 -0700)
src/proof/er/er_proof.cpp

index 9160546f942e0d225c98736c9b846337138cbfa9..7b966f2c634f78bc66f79adc13ae16b7cf1c58c7 100644 (file)
@@ -333,7 +333,7 @@ prop::SatLiteral resolveModify(
     std::unordered_set<prop::SatLiteral, prop::SatLiteralHashFunction>& dest,
     const prop::SatClause& src)
 {
-  bool foundPivot = false;
+  CVC4_UNUSED bool foundPivot = false;
   prop::SatLiteral pivot(0, false);
 
   for (prop::SatLiteral lit : src)
@@ -341,8 +341,10 @@ prop::SatLiteral resolveModify(
     auto negationLocation = dest.find(~lit);
     if (negationLocation != dest.end())
     {
+#ifdef CVC4_ASSERTIONS
       Assert(!foundPivot);
       foundPivot = true;
+#endif
       dest.erase(negationLocation);
       pivot = ~lit;
     }