mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
As of GCC8, the throw by value, catch by reference idiom is enforced via -Wcatch-value
This commit is contained in:
parent
5134c16833
commit
f02d031d11
7 changed files with 19 additions and 19 deletions
|
@ -35,7 +35,7 @@ static void tst1() {
|
|||
std::cout << i << ": " << a << "\n";
|
||||
}
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
catch (const z3_exception & ex) {
|
||||
std::cout << ex.msg() << "\n";
|
||||
}
|
||||
}
|
||||
|
@ -432,7 +432,7 @@ static void tst_limits(unsigned prec) {
|
|||
m.round_to_plus_inf();
|
||||
bool overflow = false;
|
||||
try { m.inc(a); }
|
||||
catch (mpff_manager::overflow_exception) { overflow = true; }
|
||||
catch (const mpff_manager::overflow_exception &) { overflow = true; }
|
||||
VERIFY(overflow);
|
||||
m.set_max(a);
|
||||
m.dec(a);
|
||||
|
@ -446,7 +446,7 @@ static void tst_limits(unsigned prec) {
|
|||
ENSURE(m.eq(a, b));
|
||||
overflow = true;
|
||||
try { m.dec(a); }
|
||||
catch (mpff_manager::overflow_exception) { overflow = true; }
|
||||
catch (const mpff_manager::overflow_exception &) { overflow = true; }
|
||||
ENSURE(overflow);
|
||||
m.round_to_plus_inf();
|
||||
m.set_min(a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue