From 2d524fd97a675e5a4f0adf0e52ac23634c16f785 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 27 Mar 2020 01:48:31 +0300 Subject: [PATCH] fixed a clang warning --- src/wallet/plain_wallet_api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index ca0f4dca..b77bc160 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -117,7 +117,8 @@ namespace plain_wallet std::string argss_1 = std::string("--remote-node=") + ip + ":" + port; std::string argss_2 = std::string("--disable-logs-init"); char * args[4]; - args[0] = "stub"; + static const char* arg0_stub = "stub"; + args[0] = const_cast(arg0_stub); args[1] = const_cast(argss_1.c_str()); args[2] = const_cast(argss_2.c_str()); args[3] = nullptr;