mirror of
https://github.com/nlohmann/json.git
synced 2026-10-19 20:48:13 +00:00
Merge pull request #2305 from AODQ/develop
fixes unused variable 'ex' for #2304
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -263,6 +263,7 @@ class json_sax_dom_parser
|
|||||||
const Exception& ex)
|
const Exception& ex)
|
||||||
{
|
{
|
||||||
errored = true;
|
errored = true;
|
||||||
|
static_cast<void>(ex);
|
||||||
if (allow_exceptions)
|
if (allow_exceptions)
|
||||||
{
|
{
|
||||||
JSON_THROW(ex);
|
JSON_THROW(ex);
|
||||||
@@ -501,6 +502,7 @@ class json_sax_dom_callback_parser
|
|||||||
const Exception& ex)
|
const Exception& ex)
|
||||||
{
|
{
|
||||||
errored = true;
|
errored = true;
|
||||||
|
static_cast<void>(ex);
|
||||||
if (allow_exceptions)
|
if (allow_exceptions)
|
||||||
{
|
{
|
||||||
JSON_THROW(ex);
|
JSON_THROW(ex);
|
||||||
|
|||||||
@@ -5442,6 +5442,7 @@ class json_sax_dom_parser
|
|||||||
const Exception& ex)
|
const Exception& ex)
|
||||||
{
|
{
|
||||||
errored = true;
|
errored = true;
|
||||||
|
static_cast<void>(ex);
|
||||||
if (allow_exceptions)
|
if (allow_exceptions)
|
||||||
{
|
{
|
||||||
JSON_THROW(ex);
|
JSON_THROW(ex);
|
||||||
@@ -5680,6 +5681,7 @@ class json_sax_dom_callback_parser
|
|||||||
const Exception& ex)
|
const Exception& ex)
|
||||||
{
|
{
|
||||||
errored = true;
|
errored = true;
|
||||||
|
static_cast<void>(ex);
|
||||||
if (allow_exceptions)
|
if (allow_exceptions)
|
||||||
{
|
{
|
||||||
JSON_THROW(ex);
|
JSON_THROW(ex);
|
||||||
|
|||||||
Reference in new issue
Block a user