From f6ad9d7800b84c36de31b8871880ed17c2c14f6c Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sun, 31 Mar 2024 15:37:47 +0200 Subject: [PATCH] Fixing shared->unique assignment and no return in control flow. (#4529) --- nano/nano_wallet/entry.cpp | 2 +- nano/rpc/rpc.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nano/nano_wallet/entry.cpp b/nano/nano_wallet/entry.cpp index 5c3a0a29a..d91266df0 100644 --- a/nano/nano_wallet/entry.cpp +++ b/nano/nano_wallet/entry.cpp @@ -175,7 +175,7 @@ int run_wallet (QApplication & application, int argc, char * const * argv, std:: nano::ipc::ipc_server ipc (*node, config.rpc); std::unique_ptr rpc_process; - std::unique_ptr rpc; + std::shared_ptr rpc; std::unique_ptr rpc_handler; if (config.rpc_enable) { diff --git a/nano/rpc/rpc.cpp b/nano/rpc/rpc.cpp index 2ef3e2615..c2cae1e3e 100644 --- a/nano/rpc/rpc.cpp +++ b/nano/rpc/rpc.cpp @@ -97,4 +97,5 @@ std::shared_ptr nano::get_rpc (std::shared_ptr (io_ctx_a, config_a, rpc_handler_interface_a); } + return nullptr; }