mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user