mirror of
https://github.com/Z3Prover/z3
synced 2025-08-17 00:32:16 +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
|
@ -1310,7 +1310,7 @@ bool context_t<C>::relevant_new_bound(var x, numeral const & k, bool lower, bool
|
|||
TRACE("subpaving_relevant_bound", tout << "new bound is relevant\n";);
|
||||
return true;
|
||||
}
|
||||
catch (typename C::exception) {
|
||||
catch (const typename C::exception &) {
|
||||
// arithmetic module failed.
|
||||
set_arith_failed();
|
||||
return false;
|
||||
|
@ -1722,7 +1722,7 @@ void context_t<C>::propagate(node * n, bound * b) {
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (typename C::exception) {
|
||||
catch (const typename C::exception &) {
|
||||
// arithmetic module failed, ignore constraint
|
||||
set_arith_failed();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue