mirror of
https://github.com/espressif/openthread.git
synced 2026-08-28 04:49:54 +00:00
[nrf528xx] fix compiler warning (#4135)
sInstance was unused without OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT.
This commit is contained in:
committed by
Jonathan Hui
parent
ed0939c45a
commit
528e7d5992
@@ -86,8 +86,8 @@ static uint8_t sTransmitPsdu[OT_RADIO_FRAME_MAX_SIZE + 1];
|
||||
|
||||
#if OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||
static otRadioIeInfo sTransmitIeInfo;
|
||||
static otInstance * sInstance = NULL;
|
||||
#endif
|
||||
static otInstance *sInstance = NULL;
|
||||
|
||||
static otRadioFrame sAckFrame;
|
||||
static bool sAckedWithFramePending;
|
||||
@@ -283,7 +283,11 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
||||
{
|
||||
otError error;
|
||||
|
||||
#if !OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
#else
|
||||
sInstance = aInstance;
|
||||
#endif
|
||||
|
||||
if (sDisabled)
|
||||
{
|
||||
|
||||
@@ -86,8 +86,8 @@ static uint8_t sTransmitPsdu[OT_RADIO_FRAME_MAX_SIZE + 1];
|
||||
|
||||
#if OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||
static otRadioIeInfo sTransmitIeInfo;
|
||||
static otInstance * sInstance = NULL;
|
||||
#endif
|
||||
static otInstance *sInstance = NULL;
|
||||
|
||||
static otRadioFrame sAckFrame;
|
||||
static bool sAckedWithFramePending;
|
||||
@@ -283,7 +283,11 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
||||
{
|
||||
otError error;
|
||||
|
||||
#if !OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
#else
|
||||
sInstance = aInstance;
|
||||
#endif
|
||||
|
||||
if (sDisabled)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user