mirror of
https://github.com/nlohmann/json.git
synced 2026-03-03 15:56:26 +00:00
🚨 fixed compiler warnings
This commit is contained in:
@@ -60,10 +60,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
||||
// parse errors are ok, because input may be random bytes
|
||||
}
|
||||
catch (const json::out_of_range&)
|
||||
{
|
||||
// parse errors are ok, because input may be random bytes
|
||||
}
|
||||
catch (const json::out_of_range&)
|
||||
{
|
||||
// out of range errors may happen if provided sizes are excessive
|
||||
}
|
||||
|
||||
@@ -1013,7 +1013,7 @@ TEST_CASE("BSON numerical data")
|
||||
{ "entry", i }
|
||||
};
|
||||
|
||||
std::uint64_t iu = *reinterpret_cast<std::uint64_t*>(&i);
|
||||
auto iu = i;
|
||||
std::vector<uint8_t> expected_bson =
|
||||
{
|
||||
0x10u, 0x00u, 0x00u, 0x00u, // size (little endian)
|
||||
@@ -1068,7 +1068,7 @@ TEST_CASE("BSON numerical data")
|
||||
{ "entry", i }
|
||||
};
|
||||
|
||||
std::uint64_t iu = *reinterpret_cast<std::uint64_t*>(&i);
|
||||
auto iu = i;
|
||||
std::vector<uint8_t> expected_bson =
|
||||
{
|
||||
0x14u, 0x00u, 0x00u, 0x00u, // size (little endian)
|
||||
@@ -1118,7 +1118,7 @@ TEST_CASE("BSON numerical data")
|
||||
{ "entry", i }
|
||||
};
|
||||
|
||||
std::uint64_t iu = *reinterpret_cast<std::uint64_t*>(&i);
|
||||
auto iu = i;
|
||||
std::vector<uint8_t> expected_bson =
|
||||
{
|
||||
0x14u, 0x00u, 0x00u, 0x00u, // size (little endian)
|
||||
|
||||
Reference in New Issue
Block a user