mirror of
https://github.com/nlohmann/json.git
synced 2026-11-19 17:55:20 +00:00
Ignore the dump() result in the long-token test explicitly
GCC rejects the discarded nodiscard result with -Werror=unused-result. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
1 file changed
+1
-1
@@ -3452,7 +3452,7 @@ TEST_CASE("parse error message of a long token")
|
||||
CHECK(tail <= 4096);
|
||||
CHECK(tail > 4092);
|
||||
CHECK(text.compare(text.size() - tail, tail, shown, dots + 3, tail) == 0);
|
||||
CHECK_NOTHROW(json(shown).dump());
|
||||
CHECK_NOTHROW(utils::ignore_return_value(json(shown).dump()));
|
||||
|
||||
for (int kind = 1; kind < 4; ++kind)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user