diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2018-06-10 16:33:25 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2018-06-10 16:33:25 +0200 |
commit | 32df75ec9613093a3a4bdff692052cd862012444 (patch) | |
tree | f6db3e7aeb8f6521bc68735f6edad261321dcbc1 /src | |
parent | 3614cb9b92ac7775ea16228a89f96608ae0c1da5 (diff) |
bytesizeparser: fix multiple catch by value errors (gcc8)
Diffstat (limited to 'src')
-rw-r--r-- | src/bytesizeparser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytesizeparser.cc b/src/bytesizeparser.cc index ef63f7d..08c7b5b 100644 --- a/src/bytesizeparser.cc +++ b/src/bytesizeparser.cc @@ -67,12 +67,12 @@ std::size_t byteSizeParser(const std::string& argument) { size = std::stoi(argument, &suffix_index); } - catch(std::invalid_argument) + catch(std::invalid_argument&) { std::cerr << "Invalid argument for diskstreamsize" << std::endl; error = true; } - catch(std::out_of_range) + catch(std::out_of_range&) { std::cerr << "Number too big. Try using bigger suffix for diskstreamsize" << std::endl; error = true; |