[udp] suppress warning of unused parameter (#4228)

This commit is contained in:
wgtdkp
2019-10-09 08:49:47 -07:00
committed by Jonathan Hui
parent 96e1ffa307
commit 350b83acb0
+1
View File
@@ -54,6 +54,7 @@ static bool IsMle(Instance &aInstance, uint16_t aPort)
#if OPENTHREAD_FTD
return aPort == ot::Mle::kUdpPort || aPort == aInstance.Get<MeshCoP::JoinerRouter>().GetJoinerUdpPort();
#else
OT_UNUSED_VARIABLE(aInstance);
return aPort == ot::Mle::kUdpPort;
#endif
}