Skip to content

Commit a951d78

Browse files
authored
Batch project-chip#17 nodiscard errors: platform-specific: example apps lock-platform (project-chip#42079)
1 parent f12e6eb commit a951d78

File tree

68 files changed

+383
-341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+383
-341
lines changed

examples/lock-app/asr/src/AppTask.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ app::Clusters::NetworkCommissioning::Instance
7979

8080
void NetWorkCommissioningInstInit()
8181
{
82-
sWiFiNetworkCommissioningInstance.Init();
82+
TEMPORARY_RETURN_IGNORED sWiFiNetworkCommissioningInstance.Init();
8383

8484
// We only have network commissioning on endpoint 0.
8585
emberAfEndpointEnableDisable(kNetworkCommissioningEndpointSecondary, false);
@@ -492,5 +492,5 @@ void AppTask::UpdateCluster(intptr_t context)
492492

493493
void AppTask::UpdateClusterState(void)
494494
{
495-
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateCluster, reinterpret_cast<intptr_t>(nullptr));
495+
TEMPORARY_RETURN_IGNORED chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateCluster, reinterpret_cast<intptr_t>(nullptr));
496496
}

examples/lock-app/asr/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int main(void)
7575
vTaskStartScheduler();
7676

7777
chip::Platform::MemoryShutdown();
78-
PlatformMgr().StopEventLoopTask();
78+
TEMPORARY_RETURN_IGNORED PlatformMgr().StopEventLoopTask();
7979
PlatformMgr().Shutdown();
8080

8181
// Should never get here.

examples/lock-app/cc32xx/main/AppTask.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ int AppTask::Init()
112112

113113
// Init Chip memory management before the stack
114114
PLAT_LOG("Initialize Memory");
115-
chip::Platform::MemoryInit();
115+
TEMPORARY_RETURN_IGNORED chip::Platform::MemoryInit();
116116

117117
// Initialize LEDs
118118
PLAT_LOG("Initialize LEDs");
@@ -153,7 +153,7 @@ int AppTask::Init()
153153
static chip::CommonCaseDeviceServerInitParams initParams;
154154
(void) initParams.InitializeStaticResourcesBeforeServerInit();
155155
initParams.dataModelProvider = app::CodegenDataModelProviderInstance(initParams.persistentStorageDelegate);
156-
chip::Server::GetInstance().Init(initParams);
156+
TEMPORARY_RETURN_IGNORED chip::Server::GetInstance().Init(initParams);
157157

158158
// Initialize device attestation config
159159
PLAT_LOG("Initialize device attestation config");

examples/lock-app/cc32xx/main/CHIPDeviceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
4949

5050
// Register a function to receive events from the CHIP device layer. Note that calls to
5151
// this function will happen on the CHIP event loop thread, not the app_main thread.
52-
PlatformMgr().AddEventHandler(CHIPDeviceManager::DeviceEventHandler, reinterpret_cast<intptr_t>(cb));
52+
TEMPORARY_RETURN_IGNORED PlatformMgr().AddEventHandler(CHIPDeviceManager::DeviceEventHandler, reinterpret_cast<intptr_t>(cb));
5353

5454
// Start a task to run the CHIP Device event loop.
5555
return PlatformMgr().StartEventLoopTask();

examples/lock-app/infineon/psoc6/src/AppTask.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ app::Clusters::NetworkCommissioning::Instance
131131

132132
void NetWorkCommissioningInstInit()
133133
{
134-
sWiFiNetworkCommissioningInstance.Init();
134+
TEMPORARY_RETURN_IGNORED sWiFiNetworkCommissioningInstance.Init();
135135
}
136136

137137
void OnIdentifyStart(Identify *)
@@ -157,7 +157,7 @@ static void InitServer(intptr_t context)
157157
static chip::CommonCaseDeviceServerInitParams initParams;
158158
(void) initParams.InitializeStaticResourcesBeforeServerInit();
159159
initParams.dataModelProvider = CodegenDataModelProviderInstance(initParams.persistentStorageDelegate);
160-
chip::Server::GetInstance().Init(initParams);
160+
TEMPORARY_RETURN_IGNORED chip::Server::GetInstance().Init(initParams);
161161

162162
gExampleDeviceInfoProvider.SetStorageDelegate(&Server::GetInstance().GetPersistentStorage());
163163
chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);
@@ -313,7 +313,7 @@ void AppTask::Init()
313313
}
314314

315315
// Register the callback to init the MDNS server when connectivity is available
316-
PlatformMgr().AddEventHandler(
316+
TEMPORARY_RETURN_IGNORED PlatformMgr().AddEventHandler(
317317
[](const ChipDeviceEvent * event, intptr_t arg) {
318318
// Restart the server whenever an ip address is renewed
319319
if (event->Type == DeviceEventType::kInternetConnectivityChange)
@@ -327,7 +327,7 @@ void AppTask::Init()
327327
},
328328
0);
329329

330-
chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast<intptr_t>(nullptr));
330+
TEMPORARY_RETURN_IGNORED chip::DeviceLayer::PlatformMgr().ScheduleWork(InitServer, reinterpret_cast<intptr_t>(nullptr));
331331
}
332332

333333
void AppTask::AppTaskMain(void * pvParameter)
@@ -683,7 +683,7 @@ void AppTask::UpdateCluster(intptr_t context)
683683

684684
void AppTask::UpdateClusterState(void)
685685
{
686-
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateCluster, reinterpret_cast<intptr_t>(nullptr));
686+
TEMPORARY_RETURN_IGNORED chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateCluster, reinterpret_cast<intptr_t>(nullptr));
687687
}
688688

689689
void vApplicationStackOverflowHook(TaskHandle_t pxTask, char * pcTaskName)

examples/lock-app/infineon/psoc6/src/LockManager.cpp

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -141,33 +141,37 @@ bool LockManager::IsValidHolidayScheduleIndex(uint8_t scheduleIndex)
141141
bool LockManager::ReadConfigValues()
142142
{
143143
size_t outLen;
144-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_LockUser, reinterpret_cast<uint8_t *>(&mLockUsers),
145-
sizeof(EmberAfPluginDoorLockUserInfo) * MATTER_ARRAY_SIZE(mLockUsers), outLen);
144+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
145+
PSOC6Config::kConfigKey_LockUser, reinterpret_cast<uint8_t *>(&mLockUsers),
146+
sizeof(EmberAfPluginDoorLockUserInfo) * MATTER_ARRAY_SIZE(mLockUsers), outLen);
146147

147-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_Credential, reinterpret_cast<uint8_t *>(&mLockCredentials),
148-
sizeof(EmberAfPluginDoorLockCredentialInfo) * kMaxCredentials * kNumCredentialTypes, outLen);
148+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
149+
PSOC6Config::kConfigKey_Credential, reinterpret_cast<uint8_t *>(&mLockCredentials),
150+
sizeof(EmberAfPluginDoorLockCredentialInfo) * kMaxCredentials * kNumCredentialTypes, outLen);
149151

150-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_LockUserName, reinterpret_cast<uint8_t *>(mUserNames),
151-
sizeof(mUserNames), outLen);
152+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_LockUserName,
153+
reinterpret_cast<uint8_t *>(mUserNames), sizeof(mUserNames), outLen);
152154

153-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_CredentialData, reinterpret_cast<uint8_t *>(mCredentialData),
154-
sizeof(mCredentialData), outLen);
155+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
156+
PSOC6Config::kConfigKey_CredentialData, reinterpret_cast<uint8_t *>(mCredentialData), sizeof(mCredentialData), outLen);
155157

156-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_UserCredentials, reinterpret_cast<uint8_t *>(mCredentials),
157-
sizeof(CredentialStruct) * LockParams.numberOfUsers * kMaxCredentials, outLen);
158+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
159+
PSOC6Config::kConfigKey_UserCredentials, reinterpret_cast<uint8_t *>(mCredentials),
160+
sizeof(CredentialStruct) * LockParams.numberOfUsers * kMaxCredentials, outLen);
158161

159-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_WeekDaySchedules, reinterpret_cast<uint8_t *>(mWeekdaySchedule),
160-
sizeof(EmberAfPluginDoorLockWeekDaySchedule) * LockParams.numberOfWeekdaySchedulesPerUser *
161-
LockParams.numberOfUsers,
162-
outLen);
162+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
163+
PSOC6Config::kConfigKey_WeekDaySchedules, reinterpret_cast<uint8_t *>(mWeekdaySchedule),
164+
sizeof(EmberAfPluginDoorLockWeekDaySchedule) * LockParams.numberOfWeekdaySchedulesPerUser * LockParams.numberOfUsers,
165+
outLen);
163166

164-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_YearDaySchedules, reinterpret_cast<uint8_t *>(mYeardaySchedule),
165-
sizeof(EmberAfPluginDoorLockYearDaySchedule) * LockParams.numberOfYeardaySchedulesPerUser *
166-
LockParams.numberOfUsers,
167-
outLen);
167+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
168+
PSOC6Config::kConfigKey_YearDaySchedules, reinterpret_cast<uint8_t *>(mYeardaySchedule),
169+
sizeof(EmberAfPluginDoorLockYearDaySchedule) * LockParams.numberOfYeardaySchedulesPerUser * LockParams.numberOfUsers,
170+
outLen);
168171

169-
PSOC6Config::ReadConfigValueBin(PSOC6Config::kConfigKey_HolidaySchedules, reinterpret_cast<uint8_t *>(&(mHolidaySchedule)),
170-
sizeof(EmberAfPluginDoorLockHolidaySchedule) * LockParams.numberOfHolidaySchedules, outLen);
172+
TEMPORARY_RETURN_IGNORED PSOC6Config::ReadConfigValueBin(
173+
PSOC6Config::kConfigKey_HolidaySchedules, reinterpret_cast<uint8_t *>(&(mHolidaySchedule)),
174+
sizeof(EmberAfPluginDoorLockHolidaySchedule) * LockParams.numberOfHolidaySchedules, outLen);
171175

172176
return true;
173177
}
@@ -392,14 +396,16 @@ bool LockManager::SetUser(chip::EndpointId endpointId, uint16_t userIndex, chip:
392396
userInStorage.credentials = chip::Span<const CredentialStruct>(mCredentials[userIndex], totalCredentials);
393397

394398
// Save user information in NVM flash
395-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_LockUser, reinterpret_cast<const uint8_t *>(&mLockUsers),
396-
sizeof(EmberAfPluginDoorLockUserInfo) * LockParams.numberOfUsers);
399+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_LockUser,
400+
reinterpret_cast<const uint8_t *>(&mLockUsers),
401+
sizeof(EmberAfPluginDoorLockUserInfo) * LockParams.numberOfUsers);
397402

398-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_UserCredentials, reinterpret_cast<const uint8_t *>(mCredentials),
399-
sizeof(CredentialStruct) * LockParams.numberOfUsers * kMaxCredentials);
403+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(
404+
PSOC6Config::kConfigKey_UserCredentials, reinterpret_cast<const uint8_t *>(mCredentials),
405+
sizeof(CredentialStruct) * LockParams.numberOfUsers * kMaxCredentials);
400406

401-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_LockUserName, reinterpret_cast<const uint8_t *>(mUserNames),
402-
sizeof(mUserNames));
407+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_LockUserName,
408+
reinterpret_cast<const uint8_t *>(mUserNames), sizeof(mUserNames));
403409

404410
ChipLogProgress(Zcl, "Successfully set the user [mEndpointId=%d,index=%d]", endpointId, userIndex);
405411

@@ -480,11 +486,12 @@ bool LockManager::SetCredential(chip::EndpointId endpointId, uint16_t credential
480486
chip::ByteSpan{ mCredentialData[to_underlying(credentialType)][credentialIndex], credentialData.size() };
481487

482488
// Save credential information in NVM flash
483-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_Credential, reinterpret_cast<const uint8_t *>(&mLockCredentials),
484-
sizeof(EmberAfPluginDoorLockCredentialInfo) * kMaxCredentials * kNumCredentialTypes);
489+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(
490+
PSOC6Config::kConfigKey_Credential, reinterpret_cast<const uint8_t *>(&mLockCredentials),
491+
sizeof(EmberAfPluginDoorLockCredentialInfo) * kMaxCredentials * kNumCredentialTypes);
485492

486-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_CredentialData, reinterpret_cast<const uint8_t *>(&mCredentialData),
487-
sizeof(mCredentialData));
493+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(
494+
PSOC6Config::kConfigKey_CredentialData, reinterpret_cast<const uint8_t *>(&mCredentialData), sizeof(mCredentialData));
488495

489496
ChipLogProgress(Zcl, "Successfully set the credential [credentialType=%u]", to_underlying(credentialType));
490497

@@ -539,9 +546,9 @@ DlStatus LockManager::SetWeekdaySchedule(chip::EndpointId endpointId, uint8_t we
539546
scheduleInStorage.status = status;
540547

541548
// Save schedule information in NVM flash
542-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_WeekDaySchedules, reinterpret_cast<const uint8_t *>(mWeekdaySchedule),
543-
sizeof(EmberAfPluginDoorLockWeekDaySchedule) * LockParams.numberOfWeekdaySchedulesPerUser *
544-
LockParams.numberOfUsers);
549+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(
550+
PSOC6Config::kConfigKey_WeekDaySchedules, reinterpret_cast<const uint8_t *>(mWeekdaySchedule),
551+
sizeof(EmberAfPluginDoorLockWeekDaySchedule) * LockParams.numberOfWeekdaySchedulesPerUser * LockParams.numberOfUsers);
545552

546553
return DlStatus::kSuccess;
547554
}
@@ -588,9 +595,9 @@ DlStatus LockManager::SetYeardaySchedule(chip::EndpointId endpointId, uint8_t ye
588595
scheduleInStorage.status = status;
589596

590597
// Save schedule information in NVM flash
591-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_YearDaySchedules, reinterpret_cast<const uint8_t *>(mYeardaySchedule),
592-
sizeof(EmberAfPluginDoorLockYearDaySchedule) * LockParams.numberOfYeardaySchedulesPerUser *
593-
LockParams.numberOfUsers);
598+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(
599+
PSOC6Config::kConfigKey_YearDaySchedules, reinterpret_cast<const uint8_t *>(mYeardaySchedule),
600+
sizeof(EmberAfPluginDoorLockYearDaySchedule) * LockParams.numberOfYeardaySchedulesPerUser * LockParams.numberOfUsers);
594601

595602
return DlStatus::kSuccess;
596603
}
@@ -632,9 +639,9 @@ DlStatus LockManager::SetHolidaySchedule(chip::EndpointId endpointId, uint8_t ho
632639
scheduleInStorage.status = status;
633640

634641
// Save schedule information in NVM flash
635-
PSOC6Config::WriteConfigValueBin(PSOC6Config::kConfigKey_HolidaySchedules,
636-
reinterpret_cast<const uint8_t *>(&(mHolidaySchedule)),
637-
sizeof(EmberAfPluginDoorLockHolidaySchedule) * LockParams.numberOfHolidaySchedules);
642+
TEMPORARY_RETURN_IGNORED PSOC6Config::WriteConfigValueBin(
643+
PSOC6Config::kConfigKey_HolidaySchedules, reinterpret_cast<const uint8_t *>(&(mHolidaySchedule)),
644+
sizeof(EmberAfPluginDoorLockHolidaySchedule) * LockParams.numberOfHolidaySchedules);
638645

639646
return DlStatus::kSuccess;
640647
}

examples/lock-app/infineon/psoc6/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extern "C" void vApplicationIdleHook(void)
7575
extern "C" void vApplicationDaemonTaskStartupHook()
7676
{
7777
// Init Chip memory management before the stack
78-
chip::Platform::MemoryInit();
78+
TEMPORARY_RETURN_IGNORED chip::Platform::MemoryInit();
7979

8080
/* Create the Main task. */
8181
xTaskCreate(main_task, "Main task", MAIN_TASK_STACK_SIZE, NULL, MAIN_TASK_PRIORITY, NULL);
@@ -143,7 +143,7 @@ int main(void)
143143
vTaskStartScheduler();
144144

145145
chip::Platform::MemoryShutdown();
146-
PlatformMgr().StopEventLoopTask();
146+
TEMPORARY_RETURN_IGNORED PlatformMgr().StopEventLoopTask();
147147
PlatformMgr().Shutdown();
148148

149149
// Should never get here.

examples/lock-app/nrfconnect/main/AppTask.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ CHIP_ERROR AppTask::Init()
171171
return err;
172172
}
173173

174-
sThreadNetworkDriver.Init();
174+
TEMPORARY_RETURN_IGNORED sThreadNetworkDriver.Init();
175175
#elif defined(CONFIG_CHIP_WIFI)
176-
sWiFiCommissioningInstance.Init();
176+
TEMPORARY_RETURN_IGNORED sWiFiCommissioningInstance.Init();
177177
#else
178178
return CHIP_ERROR_INTERNAL;
179179
#endif // CONFIG_NET_L2_OPENTHREAD
@@ -267,7 +267,7 @@ CHIP_ERROR AppTask::Init()
267267
// Add CHIP event handler and start CHIP thread.
268268
// Note that all the initialization code should happen prior to this point to avoid data races
269269
// between the main and the CHIP threads.
270-
PlatformMgr().AddEventHandler(ChipEventHandler, 0);
270+
TEMPORARY_RETURN_IGNORED PlatformMgr().AddEventHandler(ChipEventHandler, 0);
271271

272272
// Disable auto-relock time feature.
273273
DoorLockServer::Instance().SetAutoRelockTime(kLockEndpointId, 0);
@@ -577,7 +577,7 @@ void AppTask::ChipEventHandler(const ChipDeviceEvent * event, intptr_t /* arg */
577577
}
578578
else if (event->CHIPoBLEAdvertisingChange.Result == kActivity_Stopped)
579579
{
580-
NFCOnboardingPayloadMgr().StopTagEmulation();
580+
TEMPORARY_RETURN_IGNORED NFCOnboardingPayloadMgr().StopTagEmulation();
581581
}
582582
#endif
583583
sHaveBLEConnections = ConnectivityMgr().NumBLEConnections() != 0;
@@ -685,7 +685,7 @@ void AppTask::UpdateClusterState(BoltLockManager::State state, BoltLockManager::
685685
break;
686686
}
687687

688-
SystemLayer().ScheduleLambda([newLockState, source] {
688+
TEMPORARY_RETURN_IGNORED SystemLayer().ScheduleLambda([newLockState, source] {
689689
chip::app::DataModel::Nullable<chip::app::Clusters::DoorLock::DlLockState> currentLockState;
690690
chip::app::Clusters::DoorLock::Attributes::LockState::Get(kLockEndpointId, currentLockState);
691691

examples/lock-app/qpg/src/AppTask.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ CHIP_ERROR AppTask::Init()
6161
}
6262

6363
// Init ZCL Data Model and start server
64-
PlatformMgr().ScheduleWork(AppTask::InitServerWrapper, 0);
64+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(AppTask::InitServerWrapper, 0);
6565

6666
// Setup powercycle reset expired handler
6767
gpAppFramework_SetResetExpiredHandler(AppTask::PowerCycleExpiredHandlerWrapper);
@@ -84,7 +84,7 @@ CHIP_ERROR AppTask::Init()
8484

8585
void AppTask::JammedLockEventHandler(AppEvent * aEvent)
8686
{
87-
SystemLayer().ScheduleLambda([] {
87+
TEMPORARY_RETURN_IGNORED SystemLayer().ScheduleLambda([] {
8888
bool retVal;
8989

9090
retVal = DoorLockServer::Instance().SendLockAlarmEvent(QPG_LOCK_ENDPOINT_ID, AlarmCodeEnum::kLockJammed);
@@ -249,7 +249,7 @@ void AppTask::UpdateClusterState(void)
249249
using namespace chip::app::Clusters;
250250
auto newValue = BoltLockMgr().IsUnlocked() ? DoorLock::DlLockState::kUnlocked : DoorLock::DlLockState::kLocked;
251251

252-
SystemLayer().ScheduleLambda([newValue] {
252+
TEMPORARY_RETURN_IGNORED SystemLayer().ScheduleLambda([newValue] {
253253
bool retVal = true;
254254
chip::app::DataModel::Nullable<chip::app::Clusters::DoorLock::DlLockState> currentLockState;
255255
chip::app::Clusters::DoorLock::Attributes::LockState::Get(QPG_LOCK_ENDPOINT_ID, currentLockState);

examples/lock-app/silabs/src/AppTask.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ void UpdateClusterStateAfterUnlatch(intptr_t context)
8080

8181
void UnlatchTimerCallback(TimerHandle_t xTimer)
8282
{
83-
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterStateAfterUnlatch, reinterpret_cast<intptr_t>(nullptr));
83+
TEMPORARY_RETURN_IGNORED chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterStateAfterUnlatch,
84+
reinterpret_cast<intptr_t>(nullptr));
8485
}
8586

8687
void CancelUnlatchTimer(void)
@@ -227,7 +228,7 @@ CHIP_ERROR AppTask::AppInit()
227228
#endif // QR_CODE_ENABLED
228229
#endif
229230

230-
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast<intptr_t>(nullptr));
231+
TEMPORARY_RETURN_IGNORED chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast<intptr_t>(nullptr));
231232

232233
ConfigurationMgr().LogDeviceConfig();
233234

@@ -370,7 +371,8 @@ void AppTask::ActionCompleted(LockManager::Action_t aAction)
370371

371372
if (sAppTask.mSyncClusterToButtonAction)
372373
{
373-
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast<intptr_t>(nullptr));
374+
TEMPORARY_RETURN_IGNORED chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState,
375+
reinterpret_cast<intptr_t>(nullptr));
374376
sAppTask.mSyncClusterToButtonAction = false;
375377
}
376378
}

0 commit comments

Comments
 (0)