Merge pull request #2053 from nlohmann/gcc10warnings

Fix GCC compiler warnings
This commit is contained in:
Niels Lohmann 2020-04-20 08:05:42 +02:00 committed by GitHub
commit 3607687a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 13 deletions

View file

@ -272,8 +272,8 @@ TEST_CASE("bad my_allocator::construct")
double,
allocator_no_forward>;
bad_alloc_json json;
json["test"] = bad_alloc_json::array_t();
json["test"].push_back("should not leak");
bad_alloc_json j;
j["test"] = bad_alloc_json::array_t();
j["test"].push_back("should not leak");
}
}