diff options
author | Jon Burgess <jburgess777@gmail.com> | 2018-10-28 19:27:56 +0000 |
---|---|---|
committer | Jon Burgess <jburgess777@gmail.com> | 2018-10-28 19:27:56 +0000 |
commit | ccb2b4041217e107bd9eafa4cf5856dbff83cda9 (patch) | |
tree | 6997bce368dcce4959af57118f92a34c5df0c5c6 | |
parent | 5ab07ed32a768d484284f1d0e58f61c2ef9d398a (diff) | |
download | icestorm-ccb2b4041217e107bd9eafa4cf5856dbff83cda9.tar.gz icestorm-ccb2b4041217e107bd9eafa4cf5856dbff83cda9.tar.bz2 icestorm-ccb2b4041217e107bd9eafa4cf5856dbff83cda9.zip |
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
-rw-r--r-- | icetime/icetime.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; } |