🚨 fix warnings

This commit is contained in:
Niels Lohmann 2020-06-06 14:30:17 +02:00
parent 7444c7fa25
commit bf2e714e96
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
8 changed files with 163 additions and 142 deletions

View file

@ -1587,7 +1587,7 @@ TEST_CASE("parser class")
CHECK (j_filtered1.size() == 2);
CHECK (j_filtered1 == json({1, {{"qux", "baz"}}}));
json j_filtered2 = json::parse(structured_array, [](int, json::parse_event_t e, const json & /*parsed*/)
json j_filtered2 = json::parse(structured_array, [](int, json::parse_event_t e, const json& /*parsed*/)
{
if (e == json::parse_event_t::object_end)
{

View file

@ -87,7 +87,6 @@ TEST_CASE("Custom iterator")
using reference = const char&;
using iterator_category = std::input_iterator_tag;
MyIterator& operator++()
{
++ptr;
@ -117,6 +116,4 @@ TEST_CASE("Custom iterator")
CHECK(as_json.at(3) == 4);
}
}
} // namespace