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:
Niels Lohmann committed 2026-11-18 10:55:42 +01:00
1 parent 31b51c95db
commit 84db6ff66e
1 file changed
+1 -1
+1 -1
View File
@@ -3452,7 +3452,7 @@ TEST_CASE("parse error message of a long token")
CHECK(tail <= 4096); CHECK(tail <= 4096);
CHECK(tail > 4092); CHECK(tail > 4092);
CHECK(text.compare(text.size() - tail, tail, shown, dots + 3, tail) == 0); 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) for (int kind = 1; kind < 4; ++kind)
{ {