Silence unused parameter warning when EXV_ENABLE_INIH is undefined.

This commit is contained in:
Kevin Backhouse 2023-01-17 08:51:12 +00:00
parent 2b2111ff41
commit b55a0a564a
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

View File

@ -80,7 +80,8 @@ std::string getExiv2ConfigPath() {
return (currentPath / inifile).string();
}
std::string readExiv2Config(const std::string& section, const std::string& value, const std::string& def) {
std::string readExiv2Config([[maybe_unused]] const std::string& section, [[maybe_unused]] const std::string& value,
const std::string& def) {
std::string result = def;
#ifdef EXV_ENABLE_INIH