mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +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
|
@ -395,7 +395,7 @@ class set_option_cmd : public set_get_option_cmd {
|
|||
env_params::updt_params();
|
||||
ctx.global_params_updated();
|
||||
}
|
||||
catch (gparams::exception ex) {
|
||||
catch (const gparams::exception & ex) {
|
||||
throw cmd_exception(ex.msg());
|
||||
}
|
||||
}
|
||||
|
@ -620,7 +620,7 @@ public:
|
|||
try {
|
||||
ctx.regular_stream() << gparams::get_value(opt) << std::endl;
|
||||
}
|
||||
catch (gparams::exception ex) {
|
||||
catch (const gparams::exception & ex) {
|
||||
ctx.print_unsupported(opt, m_line, m_pos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue