diff options
author | ypostolov <ypostolov@luxoft.com> | 2020-02-18 17:59:10 +0200 |
---|---|---|
committer | yurii <ypostolov> | 2020-03-26 15:02:49 +0200 |
commit | 91d94fd27998e37ca34e291310b032be76698c44 (patch) | |
tree | 15d8bd4f2771dda4c0c711064dff5a76e3035dfa | |
parent | 9d8eda9d41cdf57ec5076d35bdc5e389d8ffafc5 (diff) | |
download | sdl_core-91d94fd27998e37ca34e291310b032be76698c44.tar.gz |
fixed issue unreadVariable
3 files changed, 1 insertions, 13 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/delete_command_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/delete_command_request.cc index 879f3f769f..1c30c6b5c8 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/delete_command_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/delete_command_request.cc @@ -94,16 +94,6 @@ void DeleteCommandRequest::Run() { (*message_)[strings::msg_params][strings::cmd_id]; msg_params[strings::app_id] = application->app_id(); - // we should specify amount of required responses in the 1st request - uint32_t chaining_counter = 0; - if ((*command).keyExists(strings::menu_params)) { - ++chaining_counter; - } - - // cppcheck-suppress unreadVariable - if ((*command).keyExists(strings::vr_commands)) { - ++chaining_counter; - } /* Need to set all flags before sending request to HMI * for correct processing this flags in method on_event */ if ((*command).keyExists(strings::menu_params)) { diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc index fe3edd6027..ee2df8e69d 100644 --- a/src/components/application_manager/src/application_manager_impl.cc +++ b/src/components/application_manager/src/application_manager_impl.cc @@ -4437,8 +4437,6 @@ void ApplicationManagerImpl::SendGetIconUrlNotifications( continue; } - // cppcheck-suppress unreadVariable - std::string endpoint = app_icon_it->second.endpoint; bool pending_request = app_icon_it->second.pending_request; if (pending_request) { diff --git a/src/components/hmi_message_handler/src/mb_controller.cc b/src/components/hmi_message_handler/src/mb_controller.cc index f2d6c6f5e5..3a6266d188 100644 --- a/src/components/hmi_message_handler/src/mb_controller.cc +++ b/src/components/hmi_message_handler/src/mb_controller.cc @@ -235,8 +235,8 @@ void CMessageBrokerController::exitReceivingThread() { } acceptor_.close(ec); if (ec) { - // cppcheck-suppress unreadVariable std::string str_err = "ErrorMessage Close: " + ec.message(); + LOG4CXX_ERROR(mb_logger_, str_err); } ioc_.stop(); } |