summaryrefslogtreecommitdiff
path: root/src/bytesizeparser.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2018-06-10 16:33:25 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2018-06-10 16:33:25 +0200
commit32df75ec9613093a3a4bdff692052cd862012444 (patch)
treef6db3e7aeb8f6521bc68735f6edad261321dcbc1 /src/bytesizeparser.cc
parent3614cb9b92ac7775ea16228a89f96608ae0c1da5 (diff)
bytesizeparser: fix multiple catch by value errors (gcc8)
Diffstat (limited to 'src/bytesizeparser.cc')
-rw-r--r--src/bytesizeparser.cc4
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;