modelcheck: please gcc catch-value errors

* tests/ltsmin/modelcheck.cc: here.
This commit is contained in:
Etienne Renault 2017-09-28 14:28:10 +02:00
parent a147fd65dc
commit d2549334f9

View file

@ -306,7 +306,7 @@ static int checked_main()
{
res = ec->check();
}
catch (std::bad_alloc)
catch (std::bad_alloc&)
{
std::cerr << "Out of memory during emptiness check."
<< std::endl;
@ -341,7 +341,7 @@ static int checked_main()
{
run = res->accepting_run();
}
catch (std::bad_alloc)
catch (std::bad_alloc&)
{
std::cerr << "Out of memory while looking for counterexample."
<< std::endl;