From d6c82b88bc9f4d6ee908afcdb62a3a1847aceed6 Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Fri, 16 Jul 2021 22:06:50 +0200 Subject: [PATCH] refactor: avoid unused variable warning of regex_error --- src/exiv2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exiv2.cpp b/src/exiv2.cpp index 3f424358..be47453b 100644 --- a/src/exiv2.cpp +++ b/src/exiv2.cpp @@ -451,7 +451,7 @@ int Params::evalGrep(const std::string& optArg) // try and emplace regex into vector // might throw if invalid pattern greps_.emplace_back(pattern, flags); - } catch (std::regex_error const& e) { + } catch (std::regex_error const&) { // there was an error compiling the regexp std::cerr << progname() << ": " << _("Option") << " -g: " << _("Invalid regexp") << " \"" << optArg << "\n"; return 1;