From 4c1ebb441376454fe38f57913db12d1cdf7740e2 Mon Sep 17 00:00:00 2001 From: Sonu Lohani Date: Mon, 16 Dec 2019 14:22:41 +0530 Subject: [PATCH] Fix warning: ignoring return value --- test/src/unit-large_json.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/src/unit-large_json.cpp b/test/src/unit-large_json.cpp index b40ad99e0..c39934a53 100644 --- a/test/src/unit-large_json.cpp +++ b/test/src/unit-large_json.cpp @@ -43,7 +43,8 @@ TEST_CASE("tests on very large JSONs") std::string s(2 * depth, '['); std::fill(s.begin() + depth, s.end(), ']'); - CHECK_NOTHROW(nlohmann::json::parse(s)); + json _; + CHECK_NOTHROW(_ = nlohmann::json::parse(s)); } }