Skip to content

Commit 513c094

Browse files
authored
fix: suppress unused variable
1 parent f1c8173 commit 513c094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ini/ini.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ inline std::vector<T> INIReader::GetVector(const std::string& section,
433433
vs.emplace_back(Converter<T>(s));
434434
}
435435
return vs;
436-
} catch (std::exception& e) {
436+
} catch (std::exception&) {
437437
throw std::runtime_error("cannot parse value " + value +
438438
" to vector<T>.");
439439
}
@@ -558,7 +558,7 @@ inline T INIReader::Converter(const std::string& s) const {
558558
_.exceptions(std::ios::failbit);
559559
_ >> v;
560560
return v;
561-
} catch (std::exception& e) {
561+
} catch (std::exception&) {
562562
throw std::runtime_error("cannot parse value '" + s + "' to type<T>.");
563563
};
564564
}

0 commit comments

Comments
 (0)