Skip to content

Commit

Permalink
[mle] fix warning with storedCount (openthread#10301)
Browse files Browse the repository at this point in the history
This commit fixes the warning, when logs are disabled:

warning: variable "storedCount" set but not used
[-Wunused-but-set-variable]

Signed-off-by: Łukasz Duda <[email protected]>
  • Loading branch information
LuDuda authored May 28, 2024
1 parent a54f4c4 commit ef10dec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/thread/mle_router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,8 @@ Error MleRouter::ProcessAddressRegistrationTlv(RxInfo &aRxInfo, Child &aChild)
MlrManager::MlrAddressArray oldMlrRegisteredAddresses;
#endif

OT_UNUSED_VARIABLE(storedCount);

SuccessOrExit(error =
Tlv::FindTlvValueStartEndOffsets(aRxInfo.mMessage, Tlv::kAddressRegistration, offset, endOffset));

Expand Down

0 comments on commit ef10dec

Please sign in to comment.