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
diff --git a/icetime/icetime.cc b/icetime/icetime.cc
index 35ce99a..c49e2e2 100644
--- a/icetime/icetime.cc
+++ b/icetime/icetime.cc
@@ -1320,7 +1320,7 @@
} 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;
}