@@ -435,7 +435,7 @@ int cbmc_parse_optionst::doit()
435435 return CPROVER_EXIT_EXCEPTION;
436436 }
437437
438- catch (const std::string error_msg)
438+ catch (const std::string & error_msg)
439439 {
440440 error () << error_msg << eom;
441441 return CPROVER_EXIT_EXCEPTION;
@@ -589,7 +589,7 @@ bool cbmc_parse_optionst::set_properties()
589589 return true ;
590590 }
591591
592- catch (const std::string e)
592+ catch (const std::string & e)
593593 {
594594 error () << e << eom;
595595 return true ;
@@ -649,7 +649,7 @@ int cbmc_parse_optionst::get_goto_program(
649649 return CPROVER_EXIT_EXCEPTION;
650650 }
651651
652- catch (const std::string e)
652+ catch (const std::string & e)
653653 {
654654 error () << e << eom;
655655 return CPROVER_EXIT_EXCEPTION;
@@ -661,7 +661,7 @@ int cbmc_parse_optionst::get_goto_program(
661661 return CPROVER_EXIT_EXCEPTION;
662662 }
663663
664- catch (std::bad_alloc)
664+ catch (const std::bad_alloc & )
665665 {
666666 error () << " Out of memory" << eom;
667667 return CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY;
@@ -710,7 +710,7 @@ void cbmc_parse_optionst::preprocessing()
710710 error () << e << eom;
711711 }
712712
713- catch (const std::string e)
713+ catch (const std::string & e)
714714 {
715715 error () << e << eom;
716716 }
@@ -720,7 +720,7 @@ void cbmc_parse_optionst::preprocessing()
720720 error () << " Numeric exception : " << e << eom;
721721 }
722722
723- catch (std::bad_alloc)
723+ catch (const std::bad_alloc & )
724724 {
725725 error () << " Out of memory" << eom;
726726 exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
@@ -844,7 +844,7 @@ bool cbmc_parse_optionst::process_goto_program(
844844 return true ;
845845 }
846846
847- catch (const std::string e)
847+ catch (const std::string & e)
848848 {
849849 error () << e << eom;
850850 return true ;
@@ -856,7 +856,7 @@ bool cbmc_parse_optionst::process_goto_program(
856856 return true ;
857857 }
858858
859- catch (std::bad_alloc)
859+ catch (const std::bad_alloc & )
860860 {
861861 error () << " Out of memory" << eom;
862862 exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
0 commit comments