[nexus] fix unused variable warning in otPlatRadioTransmit (#12927)

This commit fixes a compiler warning in nexus_radio.cpp where the
aFrame parameter in otPlatRadioTransmit was considered unused in
non-debug builds. The variable is only used within an OT_ASSERT.

Using OT_UNUSED_VARIABLE is the standard OpenThread pattern to
address unused parameters and ensure clean builds across different
compilers and build configurations.
This commit is contained in:
Jonathan Hui
2026-04-18 21:55:25 -05:00
committed by GitHub
parent 932e00e12d
commit 87e9a39eb3
+2
View File
@@ -140,6 +140,8 @@ otRadioFrame *otPlatRadioGetTransmitBuffer(otInstance *aInstance) { return &AsNo
otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
{
OT_UNUSED_VARIABLE(aFrame);
Error error = kErrorNone;
Radio &radio = AsNode(aInstance).mRadio;