Skip to content

Commit fae6a48

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2467 from tautschnig/vs-except
Remove unused exception name from catch statement
2 parents 24de513 + aa743b3 commit fae6a48

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/goto-symex/symex_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void goto_symext::symex_from_entry_point_of(
281281
{
282282
start_function = &get_goto_function(goto_functionst::entry_point());
283283
}
284-
catch(const std::out_of_range &error)
284+
catch(const std::out_of_range &)
285285
{
286286
throw "the program has no entry point";
287287
}

src/goto-symex/symex_target_equation.cpp

+6-6
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(
@@ -632,7 +632,7 @@ void symex_target_equationt::convert_assertions(
632632
{
633633
step.cond_literal = prop_conv.convert(implication);
634634
}
635-
catch(const bitvector_conversion_exceptiont &conversion_exception)
635+
catch(const bitvector_conversion_exceptiont &)
636636
{
637637
util_throw_with_nested(
638638
equation_conversion_exceptiont(

src/jsil/jsil_typecheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ bool jsil_typecheck(
938938
jsil_typecheck.typecheck_expr(expr);
939939
}
940940

941-
catch(int e)
941+
catch(int)
942942
{
943943
jsil_typecheck.error();
944944
}

src/solvers/flattening/boolbv_byte_extract.cpp

+1-1
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)