mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-30 02:02:30 +00:00
fix warnings
This commit is contained in:
@@ -284,7 +284,7 @@ void WinService::setFailureActions(FailureActionVector failureActions, const std
|
||||
}
|
||||
|
||||
ac.dwResetPeriod = 0;
|
||||
ac.cActions = failureActions.size();
|
||||
ac.cActions = static_cast<DWORD>(failureActions.size());
|
||||
ac.lpsaActions = actions;
|
||||
|
||||
if (!ChangeServiceConfig2W(_svcHandle, SERVICE_CONFIG_FAILURE_ACTIONS, &ac))
|
||||
|
||||
@@ -42,7 +42,7 @@ void WinServiceTest::testServiceReturnsFailureActionConfigured()
|
||||
WinService spoolerService{"Spooler"};
|
||||
|
||||
auto failureActions = spoolerService.getFailureActions();
|
||||
assertEqual(3, failureActions.size());
|
||||
assertEqual(3, static_cast<int>(failureActions.size()));
|
||||
|
||||
assertEqual(WinService::SVC_RESTART, failureActions[0]);
|
||||
assertEqual(WinService::SVC_RESTART, failureActions[1]);
|
||||
|
||||
Reference in New Issue
Block a user