Skip to content

Commit 50960d7

Browse files
committed
Remove unused exception name from catch statement
1 parent 3e2fce5 commit 50960d7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/goto-symex/symex_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ void goto_symext::symex_from_entry_point_of(
274274
{
275275
start_function = &get_goto_function(goto_functionst::entry_point());
276276
}
277-
catch(const std::out_of_range &error)
277+
catch(const std::out_of_range &)
278278
{
279279
throw "the program has no entry point";
280280
}

src/goto-symex/symex_target_equation.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ void symex_target_equationt::convert_decls(
432432
{
433433
prop_conv.convert(step.cond_expr);
434434
}
435-
catch(const bitvector_conversion_exceptiont &conversion_exception)
435+
catch(const bitvector_conversion_exceptiont &)
436436
{
437437
util_throw_with_nested(
438438
equation_conversion_exceptiont(
@@ -465,7 +465,7 @@ void symex_target_equationt::convert_guards(
465465
{
466466
step.guard_literal = prop_conv.convert(step.guard);
467467
}
468-
catch(const bitvector_conversion_exceptiont &conversion_exception)
468+
catch(const bitvector_conversion_exceptiont &)
469469
{
470470
util_throw_with_nested(
471471
equation_conversion_exceptiont(
@@ -500,7 +500,7 @@ void symex_target_equationt::convert_assumptions(
500500
{
501501
step.cond_literal = prop_conv.convert(step.cond_expr);
502502
}
503-
catch(const bitvector_conversion_exceptiont &conversion_exception)
503+
catch(const bitvector_conversion_exceptiont &)
504504
{
505505
util_throw_with_nested(
506506
equation_conversion_exceptiont(
@@ -536,7 +536,7 @@ void symex_target_equationt::convert_goto_instructions(
536536
{
537537
step.cond_literal = prop_conv.convert(step.cond_expr);
538538
}
539-
catch(const bitvector_conversion_exceptiont &conversion_exception)
539+
catch(const bitvector_conversion_exceptiont &)
540540
{
541541
util_throw_with_nested(
542542
equation_conversion_exceptiont(
@@ -571,7 +571,7 @@ void symex_target_equationt::convert_constraints(
571571
{
572572
decision_procedure.set_to_true(step.cond_expr);
573573
}
574-
catch(const bitvector_conversion_exceptiont &conversion_exception)
574+
catch(const bitvector_conversion_exceptiont &)
575575
{
576576
util_throw_with_nested(
577577
equation_conversion_exceptiont(

src/solvers/flattening/boolbv_byte_extract.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bvt boolbvt::convert_byte_extract(const byte_extract_exprt &expr)
4646
{
4747
return convert_bv(flatten_byte_extract(expr, ns));
4848
}
49-
catch(const flatten_byte_extract_exceptiont &byte_extract_flatten_exception)
49+
catch(const flatten_byte_extract_exceptiont &)
5050
{
5151
util_throw_with_nested(
5252
bitvector_conversion_exceptiont("Can't convert byte_extraction", expr));

0 commit comments

Comments
 (0)