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=]
This commit is contained in:
mrg 2019-10-04 09:19:18 +00:00
parent d6b33fe60a
commit f59299f723
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}