@@ -369,7 +369,7 @@ CHIP_ERROR AdvertiserMinMdns::Init(chip::Inet::EndPointManager<chip::Inet::UDPEn
369369
370370 if (!mIsInitialized )
371371 {
372- UpdateCommissionableInstanceName ();
372+ TEMPORARY_RETURN_IGNORED UpdateCommissionableInstanceName ();
373373 }
374374
375375 // Re-set the server in the response sender in case this has been swapped in the
@@ -554,8 +554,9 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const OperationalAdvertisingParameters &
554554 return CHIP_ERROR_NO_MEMORY;
555555 }
556556 }
557- MakeServiceSubtype (nameBuffer, sizeof (nameBuffer),
558- DiscoveryFilter (DiscoveryFilterType::kCompressedFabricId , params.GetPeerId ().GetCompressedFabricId ()));
557+ TEMPORARY_RETURN_IGNORED MakeServiceSubtype (
558+ nameBuffer, sizeof (nameBuffer),
559+ DiscoveryFilter (DiscoveryFilterType::kCompressedFabricId , params.GetPeerId ().GetCompressedFabricId ()));
559560 FullQName compressedFabricIdSubtype = operationalAllocator->AllocateQName (
560561 nameBuffer, kSubtypeServiceNamePart , kOperationalServiceName , kOperationalProtocol , kLocalDomain );
561562 VerifyOrReturnError (compressedFabricIdSubtype.nameCount != 0 , CHIP_ERROR_NO_MEMORY);
@@ -673,7 +674,8 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const CommissionAdvertisingParameters &
673674
674675 if (const auto & vendorId = params.GetVendorId (); vendorId.has_value ())
675676 {
676- MakeServiceSubtype (nameBuffer, sizeof (nameBuffer), DiscoveryFilter (DiscoveryFilterType::kVendorId , *vendorId));
677+ TEMPORARY_RETURN_IGNORED MakeServiceSubtype (nameBuffer, sizeof (nameBuffer),
678+ DiscoveryFilter (DiscoveryFilterType::kVendorId , *vendorId));
677679 FullQName vendorServiceName =
678680 allocator->AllocateQName (nameBuffer, kSubtypeServiceNamePart , serviceType, kCommissionProtocol , kLocalDomain );
679681 VerifyOrReturnError (vendorServiceName.nameCount != 0 , CHIP_ERROR_NO_MEMORY);
@@ -690,7 +692,8 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const CommissionAdvertisingParameters &
690692
691693 if (const auto & deviceType = params.GetDeviceType (); deviceType.has_value ())
692694 {
693- MakeServiceSubtype (nameBuffer, sizeof (nameBuffer), DiscoveryFilter (DiscoveryFilterType::kDeviceType , *deviceType));
695+ TEMPORARY_RETURN_IGNORED MakeServiceSubtype (nameBuffer, sizeof (nameBuffer),
696+ DiscoveryFilter (DiscoveryFilterType::kDeviceType , *deviceType));
694697 FullQName vendorServiceName =
695698 allocator->AllocateQName (nameBuffer, kSubtypeServiceNamePart , serviceType, kCommissionProtocol , kLocalDomain );
696699 VerifyOrReturnError (vendorServiceName.nameCount != 0 , CHIP_ERROR_NO_MEMORY);
@@ -709,8 +712,9 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const CommissionAdvertisingParameters &
709712 if (params.GetCommissionAdvertiseMode () == CommssionAdvertiseMode::kCommissionableNode )
710713 {
711714 {
712- MakeServiceSubtype (nameBuffer, sizeof (nameBuffer),
713- DiscoveryFilter (DiscoveryFilterType::kShortDiscriminator , params.GetShortDiscriminator ()));
715+ TEMPORARY_RETURN_IGNORED MakeServiceSubtype (
716+ nameBuffer, sizeof (nameBuffer),
717+ DiscoveryFilter (DiscoveryFilterType::kShortDiscriminator , params.GetShortDiscriminator ()));
714718 FullQName shortServiceName =
715719 allocator->AllocateQName (nameBuffer, kSubtypeServiceNamePart , serviceType, kCommissionProtocol , kLocalDomain );
716720 VerifyOrReturnError (shortServiceName.nameCount != 0 , CHIP_ERROR_NO_MEMORY);
@@ -726,8 +730,9 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const CommissionAdvertisingParameters &
726730 }
727731
728732 {
729- MakeServiceSubtype (nameBuffer, sizeof (nameBuffer),
730- DiscoveryFilter (DiscoveryFilterType::kLongDiscriminator , params.GetLongDiscriminator ()));
733+ TEMPORARY_RETURN_IGNORED MakeServiceSubtype (
734+ nameBuffer, sizeof (nameBuffer),
735+ DiscoveryFilter (DiscoveryFilterType::kLongDiscriminator , params.GetLongDiscriminator ()));
731736 FullQName longServiceName =
732737 allocator->AllocateQName (nameBuffer, kSubtypeServiceNamePart , serviceType, kCommissionProtocol , kLocalDomain );
733738 VerifyOrReturnError (longServiceName.nameCount != 0 , CHIP_ERROR_NO_MEMORY);
@@ -743,7 +748,8 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const CommissionAdvertisingParameters &
743748
744749 if (params.GetCommissioningMode () != CommissioningMode::kDisabled )
745750 {
746- MakeServiceSubtype (nameBuffer, sizeof (nameBuffer), DiscoveryFilter (DiscoveryFilterType::kCommissioningMode ));
751+ TEMPORARY_RETURN_IGNORED MakeServiceSubtype (nameBuffer, sizeof (nameBuffer),
752+ DiscoveryFilter (DiscoveryFilterType::kCommissioningMode ));
747753 FullQName longServiceName =
748754 allocator->AllocateQName (nameBuffer, kSubtypeServiceNamePart , serviceType, kCommissionProtocol , kLocalDomain );
749755 VerifyOrReturnError (longServiceName.nameCount != 0 , CHIP_ERROR_NO_MEMORY);
@@ -792,7 +798,7 @@ FullQName AdvertiserMinMdns::GetOperationalTxtEntries(OperationalQueryAllocator:
792798 size_t numTxtFields = 0 ;
793799
794800 struct CommonTxtEntryStorage commonStorage;
795- AddCommonTxtEntries<OperationalAdvertisingParameters>(params, commonStorage, txtFields, numTxtFields);
801+ TEMPORARY_RETURN_IGNORED AddCommonTxtEntries<OperationalAdvertisingParameters>(params, commonStorage, txtFields, numTxtFields);
796802 if (numTxtFields == 0 )
797803 {
798804 return allocator->AllocateQNameFromArray (mEmptyTextEntries , 1 );
@@ -840,7 +846,7 @@ FullQName AdvertiserMinMdns::GetCommissioningTxtEntries(const CommissionAdvertis
840846 txtFields[numTxtFields++] = txtDeviceName;
841847 }
842848 CommonTxtEntryStorage commonStorage;
843- AddCommonTxtEntries<CommissionAdvertisingParameters>(params, commonStorage, txtFields, numTxtFields);
849+ TEMPORARY_RETURN_IGNORED AddCommonTxtEntries<CommissionAdvertisingParameters>(params, commonStorage, txtFields, numTxtFields);
844850
845851 // the following sub types only apply to commissionable node advertisements
846852 char txtDiscriminator[chip::Dnssd::kKeyLongDiscriminatorMaxLength + 3 ];
0 commit comments