mirror of
https://github.com/nlohmann/json.git
synced 2025-05-11 13:43:57 +00:00
🚨 fix warnings
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
parent
e15100598e
commit
4bebc6c2e1
@ -288,7 +288,7 @@ set(GCC_CXXFLAGS
|
||||
-Wstrict-aliasing
|
||||
-Wstrict-aliasing=3
|
||||
-Wstrict-null-sentinel
|
||||
-Wno-strict-overflow
|
||||
-Wstrict-overflow
|
||||
-Wstring-compare
|
||||
-Wstringop-overflow
|
||||
-Wstringop-overflow=4
|
||||
|
@ -1914,9 +1914,9 @@ TEST_CASE("MessagePack with std::byte")
|
||||
SECTION("empty vector")
|
||||
{
|
||||
const std::vector<std::byte> empty_data;
|
||||
CHECK_THROWS_WITH_AS([&]() {
|
||||
[[maybe_unused]] auto result = json::from_msgpack(empty_data);
|
||||
return true;
|
||||
CHECK_THROWS_WITH_AS([&]() {
|
||||
[[maybe_unused]] auto result = json::from_msgpack(empty_data);
|
||||
return true;
|
||||
}(),
|
||||
"[json.exception.parse_error.110] parse error at byte 1: syntax error while parsing MessagePack value: unexpected end of input",
|
||||
json::parse_error&);
|
||||
|
Loading…
x
Reference in New Issue
Block a user