From 46eef66b1bb691f89b70e6c29b6ed0a8fc1a59f4 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Mon, 8 Jan 2018 19:56:43 +0000 Subject: [PATCH] Clean up warning in process_restart_timer. Initialise the service pointer via the constructor to avoid warning. --- src/service.cc | 2 +- src/service.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service.cc b/src/service.cc index 4315682..1de7212 100644 --- a/src/service.cc +++ b/src/service.cc @@ -1402,7 +1402,7 @@ base_process_service::base_process_service(service_set *sset, string name, std::list> &command_offsets, const std::list &deplist_p) : service_record(sset, name, service_type_p, deplist_p), child_listener(this), - child_status_listener(this) + child_status_listener(this), restart_timer(this) { program_name = std::move(command); exec_arg_parts = separate_args(program_name, command_offsets); diff --git a/src/service.h b/src/service.h index 0e05da4..2cde697 100644 --- a/src/service.h +++ b/src/service.h @@ -610,7 +610,8 @@ class process_restart_timer : public eventloop_t::timer_impl