diff --git a/score/launch_manager/src/daemon/src/alive_monitor/details/ifexm/supervision_control_client_ut.cpp b/score/launch_manager/src/daemon/src/alive_monitor/details/ifexm/supervision_control_client_ut.cpp index d572f0a7f..aa3e0f29b 100644 --- a/score/launch_manager/src/daemon/src/alive_monitor/details/ifexm/supervision_control_client_ut.cpp +++ b/score/launch_manager/src/daemon/src/alive_monitor/details/ifexm/supervision_control_client_ut.cpp @@ -45,7 +45,7 @@ TEST_F(SupervisionControlClient_UT, SupervisionControlClient_QueueOneEvent_Succe "Description", "This test verifies that a single SupervisionEvent can be successfully queued using the " "SupervisionControlNotifier and retrieved using the SupervisionControlReceiver."); - SupervisionEvent event1{.id = process_, .eventType = SupervisionEventType::kActivation, .systemClockTimestamp = {}}; + SupervisionEvent event1{process_, SupervisionEventType::kActivation, {}}; clock_gettime(CLOCK_MONOTONIC, &event1.systemClockTimestamp); @@ -71,7 +71,7 @@ TEST_F(SupervisionControlClient_UT, SupervisionControlClient_QueueMaxNumberOfEve "SupervisionEvent " "instances defined by the buffer size, and that they can be retrieved using the SupervisionControlReceiver."); - SupervisionEvent event{.id = process_, .eventType = SupervisionEventType::kActivation, .systemClockTimestamp = {}}; + SupervisionEvent event{process_, SupervisionEventType::kActivation, {}}; for (size_t i = 0; i < static_cast(BufferConstants::BUFFER_QUEUE_SIZE); ++i) { @@ -97,7 +97,7 @@ TEST_F(SupervisionControlClient_UT, SupervisionControlClient_QueueOneEventTooMan "Description", "This test verifies that attempting to queue a SupervisionEvent when the buffer is already at maximum capacity " "results in a failure, and that no additional events can be retrieved from the receiver."); - SupervisionEvent event{.id = process_, .eventType = SupervisionEventType::kActivation, .systemClockTimestamp = {}}; + SupervisionEvent event{process_, SupervisionEventType::kActivation, {}}; for (size_t i = 0; i < static_cast(BufferConstants::BUFFER_QUEUE_SIZE); ++i) { diff --git a/score/launch_manager/src/daemon/src/alive_monitor/details/timers/CycleTimer.hpp b/score/launch_manager/src/daemon/src/alive_monitor/details/timers/CycleTimer.hpp index 5323c3055..3515b207e 100644 --- a/score/launch_manager/src/daemon/src/alive_monitor/details/timers/CycleTimer.hpp +++ b/score/launch_manager/src/daemon/src/alive_monitor/details/timers/CycleTimer.hpp @@ -99,7 +99,7 @@ class CycleTimer int result{EINTR}; // means that the sleep was interrupted by a signal while ((EINTR == result) && (!f_exitRequested_r.load())) { - result = osInterface->clockNanosleep(static_cast(TIMER_ABSTIME), &deadline, NULL); + result = osInterface->clockNanosleep(TIMER_ABSTIME, &deadline, NULL); } return result; } diff --git a/score/launch_manager/src/daemon/src/process_group_manager/details/process_info_node_UT.cpp b/score/launch_manager/src/daemon/src/process_group_manager/details/process_info_node_UT.cpp index 940effaa7..7e5869a57 100644 --- a/score/launch_manager/src/daemon/src/process_group_manager/details/process_info_node_UT.cpp +++ b/score/launch_manager/src/daemon/src/process_group_manager/details/process_info_node_UT.cpp @@ -102,7 +102,7 @@ class ProcessInfoNodeFixture : public ::testing::Test if (application_type == configuration::ApplicationType::ReportingAndSupervised) { configuration::ComponentAliveSupervision alive{ - .reporting_cycle_ms = 10, .failed_cycles_tolerance = 1, .min_indications = 0, .max_indications = 0}; + 10 /*reporting_cycle_ms*/, 1 /*failed_cycles_tolerance*/, 0 /*min_indications*/, 0 /*max_indications*/}; config.component_properties.application_profile.alive_supervision = alive; } diff --git a/score/launch_manager/src/daemon/src/process_group_manager/details/process_launcher.cpp b/score/launch_manager/src/daemon/src/process_group_manager/details/process_launcher.cpp index 525c45d5c..167975d76 100644 --- a/score/launch_manager/src/daemon/src/process_group_manager/details/process_launcher.cpp +++ b/score/launch_manager/src/daemon/src/process_group_manager/details/process_launcher.cpp @@ -75,10 +75,7 @@ void setLimit(const int resource, const std::size_t amount, const std::string_vi return; } - const struct rlimit limit{ - .rlim_cur = amount, - .rlim_max = amount, - }; + const struct rlimit limit{amount, amount}; applyLimitOrDie(resource, limit, rlimit_name); } diff --git a/score/launch_manager/src/exec_error_domain_UT.cpp b/score/launch_manager/src/exec_error_domain_UT.cpp index 317696ebb..62554daba 100644 --- a/score/launch_manager/src/exec_error_domain_UT.cpp +++ b/score/launch_manager/src/exec_error_domain_UT.cpp @@ -26,7 +26,7 @@ using score::mw::lifecycle::g_ExecErrorDomain; namespace { -constexpr std::array kAllKnownCodes = { +constexpr std::array kAllKnownCodes{{ ExecErrc::kGeneralError, ExecErrc::kInvalidArguments, ExecErrc::kCommunicationError, @@ -40,7 +40,7 @@ constexpr std::array kAllKnownCodes = { ExecErrc::kInTransitionToSameState, ExecErrc::kNoTimeStamp, ExecErrc::kCycleOverrun, -}; +}}; } // namespace