Skip to content

Commit f8902c3

Browse files
committed
Fixed build failure when tracing is off
1 parent 9e0ae6d commit f8902c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/protocols/secure_channel/CASESession.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2381,9 +2381,10 @@ CHIP_ERROR CASESession::OnMessageReceived(ExchangeContext * ec, const PayloadHea
23812381
if (msgType == Protocols::SecureChannel::MsgType::StatusReport)
23822382
{
23832383
// Need to capture before invoking status report since 'this' might be deallocated on successful completion of sigma3
2384-
auto key = (mState == State::kSentSigma3) ? kMetricDeviceCASESessionSigma3 : kMetricDeviceCASESessionSigma2Resume;
2384+
MetricKey key = (mState == State::kSentSigma3) ? kMetricDeviceCASESessionSigma3 : kMetricDeviceCASESessionSigma2Resume;
23852385
err = HandleStatusReport(std::move(msg), /* successExpected*/ true);
23862386
MATTER_LOG_METRIC_END(key, err);
2387+
IgnoreUnusedVariable(key);
23872388
}
23882389
break;
23892390
default:

0 commit comments

Comments
 (0)