From 8acaf5bdbca21dab3637b39111372e3da6e6dbcf Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 20 Aug 2017 19:31:07 +0200 Subject: [PATCH] :rotating_light: fixing two compiler warnings --- test/src/unit-cbor.cpp | 2 +- test/src/unit-msgpack.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-cbor.cpp b/test/src/unit-cbor.cpp index b808a8839..5e088be4c 100644 --- a/test/src/unit-cbor.cpp +++ b/test/src/unit-cbor.cpp @@ -1272,7 +1272,7 @@ TEST_CASE("CBOR") SECTION("strict mode") { - CHECK_THROWS_AS(json::from_cbor(vec), json::parse_error); + CHECK_THROWS_AS(json::from_cbor(vec), json::parse_error&); CHECK_THROWS_WITH(json::from_cbor(vec), "[json.exception.parse_error.110] parse error at 2: expected end of input"); } diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index f0f59fa41..374349931 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -1113,7 +1113,7 @@ TEST_CASE("MessagePack") SECTION("strict mode") { - CHECK_THROWS_AS(json::from_msgpack(vec), json::parse_error); + CHECK_THROWS_AS(json::from_msgpack(vec), json::parse_error&); CHECK_THROWS_WITH(json::from_msgpack(vec), "[json.exception.parse_error.110] parse error at 2: expected end of input"); } -- GitLab