Fix compile warning in icetime.cc

icetime.cc: In function ‘std::__cxx11::string ecnetname_to_vlog(std::__cxx11::string)’:
icetime.cc:1323:32: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]
  } catch(std::invalid_argument e) { // Not numeric and stoi throws exception
This commit is contained in:
Jon Burgess 2018-10-28 19:27:56 +00:00
parent 5ab07ed32a
commit ccb2b40412
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ std::string ecnetname_to_vlog(std::string ec_name)
} else {
return ec_name;
}
} catch(std::invalid_argument e) { // Not numeric and stoi throws exception
} catch(std::invalid_argument &e) { // Not numeric and stoi throws exception
return ec_name;
}