From f1c8173132b7d96075cfba5d9f24105fe7f661f4 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Mon, 25 Nov 2024 22:46:25 +0800 Subject: [PATCH] fix: supress unused varaible --- ini/ini.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ini/ini.h b/ini/ini.h index 00c9879..235e46a 100644 --- a/ini/ini.h +++ b/ini/ini.h @@ -398,7 +398,7 @@ inline T INIReader::Get(const std::string& section, const std::string& name, T&& default_v) const { try { return Get(section, name); - } catch (std::runtime_error& e) { + } catch (std::runtime_error&) { return default_v; } } @@ -456,7 +456,7 @@ inline std::vector INIReader::GetVector( const std::vector& default_v) const { try { return GetVector(section, name); - } catch (std::runtime_error& e) { + } catch (std::runtime_error&) { return default_v; }; }