Merge pull request #1871 from sonulohani/develop

Fix warning: ignoring return value
This commit is contained in:
Niels Lohmann 2019-12-16 15:06:47 +01:00 committed by GitHub
commit bde5712418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,8 @@ TEST_CASE("tests on very large JSONs")
std::string s(2 * depth, '[');
std::fill(s.begin() + depth, s.end(), ']');
CHECK_NOTHROW(nlohmann::json::parse(s));
json _;
CHECK_NOTHROW(_ = nlohmann::json::parse(s));
}
}