@@ -154,7 +154,7 @@ void FabricInfo::operator=(FabricInfo && other)
154154 mVendorId = other.mVendorId ;
155155 mShouldAdvertiseIdentity = other.mShouldAdvertiseIdentity ;
156156
157- SetFabricLabel (other.GetFabricLabel ());
157+ TEMPORARY_RETURN_IGNORED SetFabricLabel (other.GetFabricLabel ());
158158
159159 // Transfer ownership of operational keypair (if it was nullptr, it stays that way).
160160 mOperationalKey = other.mOperationalKey ;
@@ -911,7 +911,7 @@ FabricTable::AddOrUpdateInner(FabricIndex fabricIndex, bool isAddition, Crypto::
911911 ReturnErrorOnFailure (fabricEntry->Init (newFabricInfo));
912912
913913 // Set the label, matching add/update semantics of empty/existing.
914- fabricEntry->SetFabricLabel (fabricLabel);
914+ TEMPORARY_RETURN_IGNORED fabricEntry->SetFabricLabel (fabricLabel);
915915
916916 if (isAddition)
917917 {
@@ -1018,7 +1018,7 @@ CHIP_ERROR FabricTable::Delete(FabricIndex fabricIndex)
10181018 // If StoreFabricIndexInfo fails here, that's probably OK. When we try to
10191019 // read things from storage later we will realize there is nothing for this
10201020 // index.
1021- StoreFabricIndexInfo ();
1021+ TEMPORARY_RETURN_IGNORED StoreFabricIndexInfo ();
10221022
10231023 // If we ever start moving the FabricInfo entries around in the array on
10241024 // delete, we should update DeleteAllFabrics to handle that.
@@ -1067,7 +1067,7 @@ void FabricTable::DeleteAllFabrics()
10671067
10681068 for (auto & fabric : *this )
10691069 {
1070- Delete (fabric.GetFabricIndex ());
1070+ TEMPORARY_RETURN_IGNORED Delete (fabric.GetFabricIndex ());
10711071 }
10721072}
10731073
@@ -1096,7 +1096,7 @@ CHIP_ERROR FabricTable::Init(const FabricTable::InitParams & initParams)
10961096 // Time is unknown during incoming certificate validation for CASE and
10971097 // current time is also unknown, the certificate validity policy will see
10981098 // this condition and can act appropriately.
1099- mLastKnownGoodTime .Init (mStorage );
1099+ TEMPORARY_RETURN_IGNORED mLastKnownGoodTime .Init (mStorage );
11001100
11011101 uint8_t buf[IndexInfoTLVMaxSize ()];
11021102 uint16_t size = sizeof (buf);
@@ -1328,19 +1328,19 @@ CHIP_ERROR FabricTable::StoreFabricIndexInfo() const
13281328
13291329 if (mNextAvailableFabricIndex .HasValue ())
13301330 {
1331- writer.Put (kNextAvailableFabricIndexTag , mNextAvailableFabricIndex .Value ());
1331+ TEMPORARY_RETURN_IGNORED writer.Put (kNextAvailableFabricIndexTag , mNextAvailableFabricIndex .Value ());
13321332 }
13331333 else
13341334 {
1335- writer.PutNull (kNextAvailableFabricIndexTag );
1335+ TEMPORARY_RETURN_IGNORED writer.PutNull (kNextAvailableFabricIndexTag );
13361336 }
13371337
13381338 TLV::TLVType innerContainerType;
13391339 ReturnErrorOnFailure (writer.StartContainer (kFabricIndicesTag , TLV::kTLVType_Array , innerContainerType));
13401340 // Only enumerate the fabrics that are initialized.
13411341 for (const auto & fabric : *this )
13421342 {
1343- writer.Put (TLV::AnonymousTag (), fabric.GetFabricIndex ());
1343+ TEMPORARY_RETURN_IGNORED writer.Put (TLV::AnonymousTag (), fabric.GetFabricIndex ());
13441344 }
13451345 ReturnErrorOnFailure (writer.EndContainer (innerContainerType));
13461346 ReturnErrorOnFailure (writer.EndContainer (outerType));
@@ -1500,7 +1500,7 @@ CHIP_ERROR FabricTable::GetCommitMarker(CommitMarker & outCommitMarker)
15001500
15011501void FabricTable::ClearCommitMarker ()
15021502{
1503- mStorage ->SyncDeleteKeyValue (DefaultStorageKeyAllocator::FabricTableCommitMarkerKey ().KeyName ());
1503+ TEMPORARY_RETURN_IGNORED mStorage ->SyncDeleteKeyValue (DefaultStorageKeyAllocator::FabricTableCommitMarkerKey ().KeyName ());
15041504}
15051505
15061506bool FabricTable::HasOperationalKeyForFabric (FabricIndex fabricIndex) const
@@ -1760,7 +1760,7 @@ CHIP_ERROR FabricTable::AddNewPendingFabricCommon(const ByteSpan & noc, const By
17601760
17611761 // Notify that NOC was added (at least transiently)
17621762 *outNewFabricIndex = fabricIndexToUse;
1763- NotifyFabricUpdated (fabricIndexToUse);
1763+ TEMPORARY_RETURN_IGNORED NotifyFabricUpdated (fabricIndexToUse);
17641764
17651765 return CHIP_NO_ERROR;
17661766}
@@ -1845,7 +1845,7 @@ CHIP_ERROR FabricTable::UpdatePendingFabricCommon(FabricIndex fabricIndex, const
18451845 mStateFlags .Set (StateFlags::kIsPendingFabricDataPresent );
18461846
18471847 // Notify that NOC was updated (at least transiently)
1848- NotifyFabricUpdated (fabricIndex);
1848+ TEMPORARY_RETURN_IGNORED NotifyFabricUpdated (fabricIndex);
18491849
18501850 return CHIP_NO_ERROR;
18511851}
@@ -2061,13 +2061,13 @@ CHIP_ERROR FabricTable::CommitPendingFabricData()
20612061 {
20622062 // Blow-away everything if we got past any storage, even on Update: system state is broken
20632063 // TODO: Develop a way to properly revert in the future, but this is very difficult
2064- Delete (fabricIndexBeingCommitted);
2064+ TEMPORARY_RETURN_IGNORED Delete (fabricIndexBeingCommitted);
20652065
20662066 RevertPendingFabricData ();
20672067 }
20682068 else
20692069 {
2070- NotifyFabricCommitted (fabricIndexBeingCommitted);
2070+ TEMPORARY_RETURN_IGNORED NotifyFabricCommitted (fabricIndexBeingCommitted);
20712071 }
20722072
20732073 // Clear commit marker no matter what: if we got here, there was no reboot and previous clean-ups
@@ -2094,7 +2094,7 @@ void FabricTable::RevertPendingFabricData()
20942094 mOpCertStore ->RevertPendingOpCerts ();
20952095 }
20962096
2097- mLastKnownGoodTime .RevertPendingLastKnownGoodChipEpochTime ();
2097+ TEMPORARY_RETURN_IGNORED mLastKnownGoodTime .RevertPendingLastKnownGoodChipEpochTime ();
20982098
20992099 mStateFlags .ClearAll ();
21002100 mFabricIndexWithPendingState = kUndefinedFabricIndex ;
@@ -2119,7 +2119,7 @@ void FabricTable::RevertPendingOpCertsExceptRoot()
21192119 if (mStateFlags .Has (StateFlags::kIsAddPending ))
21202120 {
21212121 // If we have a pending add, let's make sure to kill the pending fabric metadata and return it to viable state.
2122- Delete (mFabricIndexWithPendingState );
2122+ TEMPORARY_RETURN_IGNORED Delete (mFabricIndexWithPendingState );
21232123 }
21242124
21252125 mStateFlags .Clear (StateFlags::kIsAddPending );
0 commit comments