🚨 removed compiler warnings

This commit is contained in:
Niels Lohmann 2018-06-23 10:28:04 +02:00
parent 0460b90977
commit 850922269d
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
5 changed files with 26 additions and 28 deletions

View file

@ -40,14 +40,6 @@ using nlohmann::json;
#include <unordered_set>
#include <valarray>
namespace
{
template <typename MapType>
void map_type_conversion_checks()
{
}
}
TEST_CASE("value conversion")
{
SECTION("get an object (explicit)")

View file

@ -1191,7 +1191,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
{
CAPTURE(filename);
std::ifstream f(filename);
CHECK_THROWS_AS(json::parse(f), json::parse_error);
CHECK_THROWS_AS(json::parse(f), json::parse_error&);
std::ifstream f2(filename);
CHECK(not json::accept(f2));
}
@ -1306,7 +1306,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
{
CAPTURE(filename);
std::ifstream f(filename);
CHECK_THROWS_AS(json::parse(f), json::exception); // could be parse_error or out_of_range
CHECK_THROWS_AS(json::parse(f), json::exception&); // could be parse_error or out_of_range
std::ifstream f2(filename);
CHECK(not json::accept(f2));
}