Fix warning due to catching polymorphic exceptions (#2821)
authorAndres Noetzli <andres.noetzli@gmail.com>
Tue, 29 Jan 2019 22:05:47 +0000 (14:05 -0800)
committerAina Niemetz <aina.niemetz@gmail.com>
Tue, 29 Jan 2019 22:05:47 +0000 (14:05 -0800)
test/unit/proof/drat_proof_black.h

index 63c8839b9921fb33bf4a06006db726231efff752..946597bea5318f755c10b74ae2ee78a185f02248 100644 (file)
@@ -81,19 +81,19 @@ void DratProofBlack::testParseLiteralIsTooBig()
 {
   std::string input("a\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x7f\x00",
                     14);
-  TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException);
+  TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException&);
 }
 
 void DratProofBlack::testParseLiteralOverflow()
 {
   std::string input("a\x80", 2);
-  TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException);
+  TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException&);
 }
 
 void DratProofBlack::testParseClauseOverflow()
 {
   std::string input("a\x80\x01", 3);
-  TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException);
+  TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException&);
 }
 
 void DratProofBlack::testParseTwo()