Skip to content

Commit

Permalink
Merge pull request #2305 from AODQ/develop
Browse files Browse the repository at this point in the history
fixes unused variable 'ex' for #2304
  • Loading branch information
nlohmann committed Jul 25, 2020
2 parents 63e7c40 + 15ec0fe commit 808aca4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/nlohmann/detail/input/json_sax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class json_sax_dom_parser
const Exception& ex)
{
errored = true;
static_cast<void>(ex);
if (allow_exceptions)
{
JSON_THROW(ex);
Expand Down Expand Up @@ -501,6 +502,7 @@ class json_sax_dom_callback_parser
const Exception& ex)
{
errored = true;
static_cast<void>(ex);
if (allow_exceptions)
{
JSON_THROW(ex);
Expand Down
2 changes: 2 additions & 0 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5442,6 +5442,7 @@ class json_sax_dom_parser
const Exception& ex)
{
errored = true;
static_cast<void>(ex);
if (allow_exceptions)
{
JSON_THROW(ex);
Expand Down Expand Up @@ -5680,6 +5681,7 @@ class json_sax_dom_callback_parser
const Exception& ex)
{
errored = true;
static_cast<void>(ex);
if (allow_exceptions)
{
JSON_THROW(ex);
Expand Down

0 comments on commit 808aca4

Please sign in to comment.