Skip to content

Commit

Permalink
fix: suppress unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SSARCandy authored Nov 28, 2024
1 parent f1c8173 commit 513c094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ini/ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ inline std::vector<T> INIReader::GetVector(const std::string& section,
vs.emplace_back(Converter<T>(s));
}
return vs;
} catch (std::exception& e) {
} catch (std::exception&) {
throw std::runtime_error("cannot parse value " + value +
" to vector<T>.");
}
Expand Down Expand Up @@ -558,7 +558,7 @@ inline T INIReader::Converter(const std::string& s) const {
_.exceptions(std::ios::failbit);
_ >> v;
return v;
} catch (std::exception& e) {
} catch (std::exception&) {
throw std::runtime_error("cannot parse value '" + s + "' to type<T>.");
};
}
Expand Down

0 comments on commit 513c094

Please sign in to comment.