@@ -464,7 +464,8 @@ CHIP_ERROR NxpChipDnssdBrowse(const char * type, DnssdServiceProtocol protocol,
464464 // browse results coming but the result is no error since we have a match in the SRP cache.
465465 error = CHIP_NO_ERROR;
466466 pBrowseContext->error = CHIP_NO_ERROR;
467- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchBrowseEmpty, reinterpret_cast <intptr_t >(pBrowseContext));
467+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchBrowseEmpty,
468+ reinterpret_cast <intptr_t >(pBrowseContext));
468469 }
469470 else
470471 {
@@ -583,7 +584,8 @@ CHIP_ERROR BrowseBySrp(otInstance * thrInstancePtr, char * serviceName, mDnsQuer
583584 {
584585 // Set error to CHIP_NO_ERROR to signal that there was at least one service found in the cache
585586 error = CHIP_NO_ERROR;
586- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchBrowse, reinterpret_cast <intptr_t >(serviceContext));
587+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (
588+ DispatchBrowse, reinterpret_cast <intptr_t >(serviceContext));
587589 }
588590 else
589591 {
@@ -613,7 +615,8 @@ CHIP_ERROR ResolveBySrp(otInstance * thrInstancePtr, char * serviceName, mDnsQue
613615 error = FromSrpCacheToMdnsData (service, host, mdnsReq, context->mMdnsService , context->mServiceTxtEntry );
614616 if (error == CHIP_NO_ERROR)
615617 {
616- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveSrp, reinterpret_cast <intptr_t >(context));
618+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveSrp,
619+ reinterpret_cast <intptr_t >(context));
617620 }
618621 break ;
619622 }
@@ -809,7 +812,7 @@ static void OtBrowseCallback(otInstance * aInstance, const otMdnsBrowseResult *
809812
810813 if (CHIP_NO_ERROR == error)
811814 {
812- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchBrowse, reinterpret_cast <intptr_t >(tmpContext));
815+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchBrowse, reinterpret_cast <intptr_t >(tmpContext));
813816 }
814817 else
815818 {
@@ -840,7 +843,8 @@ static void OtServiceCallback(otInstance * aInstance, const otMdnsSrvResult * aR
840843
841844 pResolveContext->mMdnsService .mPort = aResult->mPort ;
842845 pResolveContext->mMdnsService .mTtlSeconds = aResult->mTtl ;
843- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchTxtResolve, reinterpret_cast <intptr_t >(pResolveContext));
846+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchTxtResolve,
847+ reinterpret_cast <intptr_t >(pResolveContext));
844848 }
845849 else
846850 {
@@ -898,7 +902,8 @@ static void OtTxtCallback(otInstance * aInstance, const otMdnsTxtResult * aResul
898902
899903 if (bSendDispatch)
900904 {
901- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchAddressResolve, reinterpret_cast <intptr_t >(pResolveContext));
905+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchAddressResolve,
906+ reinterpret_cast <intptr_t >(pResolveContext));
902907 }
903908 else
904909 {
@@ -917,7 +922,7 @@ static void OtAddressCallback(otInstance * aInstance, const otMdnsAddressResult
917922 pResolveContext->mMdnsService .mAddressType = Inet::IPAddressType::kIPv6 ;
918923 pResolveContext->mMdnsService .mAddress = std::optional (ToIPAddress (aResult->mAddresses [0 ].mAddress ));
919924
920- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolve, reinterpret_cast <intptr_t >(pResolveContext));
925+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolve, reinterpret_cast <intptr_t >(pResolveContext));
921926}
922927
923928static void DispatchBrowseEmpty (intptr_t context)
@@ -951,7 +956,8 @@ static void DispatchTxtResolve(intptr_t context)
951956 if (error != OT_ERROR_NONE)
952957 {
953958 resolveContext->error = MapOpenThreadError (error);
954- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveError, reinterpret_cast <intptr_t >(resolveContext));
959+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveError,
960+ reinterpret_cast <intptr_t >(resolveContext));
955961 }
956962}
957963
@@ -970,7 +976,8 @@ static void DispatchAddressResolve(intptr_t context)
970976 if (error != OT_ERROR_NONE)
971977 {
972978 resolveContext->error = MapOpenThreadError (error);
973- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveError, reinterpret_cast <intptr_t >(resolveContext));
979+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveError,
980+ reinterpret_cast <intptr_t >(resolveContext));
974981 }
975982}
976983
@@ -1048,7 +1055,8 @@ static void HandleResolveCleanup(mDnsQueryCtx & resolveContext, ResolveStep step
10481055 // DispatchResolveError to handle the Matter callback with an error case. No IP address is reported and
10491056 // the address resolve operation doesn’t need to be stopped again as was not started in the first place
10501057 // or it's already handled by HandleResolveCleanup.
1051- DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveError, reinterpret_cast <intptr_t >(&resolveContext));
1058+ TEMPORARY_RETURN_IGNORED DeviceLayer::PlatformMgr ().ScheduleWork (DispatchResolveError,
1059+ reinterpret_cast <intptr_t >(&resolveContext));
10521060}
10531061
10541062static mDnsQueryCtx * GetResolveElement (const char * aName, NameType aType)
0 commit comments