From f59299f723abd6268657b9ca3acedbe8b5aa59ce Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 4 Oct 2019 09:19:18 +0000 Subject: [PATCH] give a catch() a variable. gcc 8 is picky: atf-check.cpp:221:23: error: catching polymorphic type 'class std::runtime_error' by value [-Werror=catch-value=] --- external/bsd/atf/dist/atf-sh/atf-check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/bsd/atf/dist/atf-sh/atf-check.cpp b/external/bsd/atf/dist/atf-sh/atf-check.cpp index fc4e318150b3..06a0e7c9ba33 100644 --- a/external/bsd/atf/dist/atf-sh/atf-check.cpp +++ b/external/bsd/atf/dist/atf-sh/atf-check.cpp @@ -218,7 +218,7 @@ parse_signal(const std::string& str) if (signo == INT_MIN) { try { return atf::text::to_type< int >(str); - } catch (std::runtime_error) { + } catch (std::runtime_error &e) { throw atf::application::usage_error("Invalid signal name or number " "in -s option"); }