mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[build] add format-nonliteral to missed code (#12251)
This commit enables the format-nonliteral check for code missed in `#12236`. This commit also enables the format-nonliteral warnings in CMake to catch such warnings in future in CMake build.
This commit is contained in:
@@ -383,6 +383,7 @@ void otMacFrameUpdateTimeIe(otRadioFrame *aFrame, uint64_t aRadioTime, otRadioCo
|
||||
uint8_t *timeIe;
|
||||
uint64_t time;
|
||||
|
||||
OT_UNUSED_VARIABLE(aRadioContext);
|
||||
VerifyOrExit((aFrame->mInfo.mTxInfo.mIeInfo != nullptr) && (aFrame->mInfo.mTxInfo.mIeInfo->mTimeIeOffset != 0));
|
||||
|
||||
timeIe = aFrame->mPsdu + aFrame->mInfo.mTxInfo.mIeInfo->mTimeIeOffset;
|
||||
@@ -434,7 +435,6 @@ bool otMacFrameSrcAddrMatchCslReceiverPeer(const otRadioFrame *aFrame, const otR
|
||||
break;
|
||||
|
||||
case Mac::Address::kTypeExtended:
|
||||
VerifyOrExit(*reinterpret_cast<const uint64_t *>(aRadioContext->mCslExtAddress.m8) != 0);
|
||||
VerifyOrExit(src.GetExtended() == *static_cast<const Mac::ExtAddress *>(&aRadioContext->mCslExtAddress));
|
||||
matches = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user