mirror of
https://github.com/nlohmann/json.git
synced 2026-05-23 06:35:32 +00:00
🚨 removed compiler warnings
This commit is contained in:
@@ -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)")
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user