Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Jun 10, 2024
1 parent 8fda6e6 commit 930ec32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions include/jsonrpcpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,10 @@ inline entity_ptr Parser::do_parse(const std::string& json_str)
{
throw ParseErrorException(e.what());
}

return nullptr;
catch (...)
{
return nullptr;
}
}

inline entity_ptr Parser::do_parse_json(const Json& json)
Expand Down
8 changes: 6 additions & 2 deletions test/test_main.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
/***
This file is part of jsonrpc++
Copyright (C) 2017-2021 Johannes Pohl
Copyright (C) 2017-2024 Johannes Pohl
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
***/

#include <catch2/catch_test_macros.hpp>
// local headers
#include "jsonrpcpp.hpp"

// 3rd party headers
#include <catch2/catch_test_macros.hpp>


using namespace std;

TEST_CASE("Main test")
Expand Down

0 comments on commit 930ec32

Please sign in to comment.