From 32df75ec9613093a3a4bdff692052cd862012444 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sun, 10 Jun 2018 16:33:25 +0200 Subject: bytesizeparser: fix multiple catch by value errors (gcc8) --- src/bytesizeparser.cc | 4 ++-- 1 file 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; -- cgit v1.2.3