Skip to content

Commit

Permalink
Remove static asserts, because offsetof is not happy on FabricInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Aug 4, 2023
1 parent 8b37ca4 commit 1fd036b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/credentials/FabricTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@ class DLL_EXPORT FabricInfo
return TLV::EstimateStructOverhead(sizeof(uint16_t), Crypto::P256SerializedKeypair::Capacity());
}

static void StaticAsserts()
{
static_assert(offsetof(FabricInfo, mOperationalKey) - offsetof(FabricInfo, mHasExternallyOwnedOperationalKey) == 4,
"We should have 3 bytes of padding before mOperationalKey");
}

NodeId mNodeId = kUndefinedNodeId;
FabricId mFabricId = kUndefinedFabricId;
// We cache the compressed fabric id since it's used so often and costly to get.
Expand Down

0 comments on commit 1fd036b

Please sign in to comment.