mirror of
https://github.com/espressif/openthread.git
synced 2026-09-13 12:40:05 +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
|
#if OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||||
static otRadioIeInfo sTransmitIeInfo;
|
static otRadioIeInfo sTransmitIeInfo;
|
||||||
|
static otInstance * sInstance = NULL;
|
||||||
#endif
|
#endif
|
||||||
static otInstance *sInstance = NULL;
|
|
||||||
|
|
||||||
static otRadioFrame sAckFrame;
|
static otRadioFrame sAckFrame;
|
||||||
static bool sAckedWithFramePending;
|
static bool sAckedWithFramePending;
|
||||||
@@ -283,7 +283,11 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
|||||||
{
|
{
|
||||||
otError error;
|
otError error;
|
||||||
|
|
||||||
|
#if !OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||||
|
OT_UNUSED_VARIABLE(aInstance);
|
||||||
|
#else
|
||||||
sInstance = aInstance;
|
sInstance = aInstance;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (sDisabled)
|
if (sDisabled)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ static uint8_t sTransmitPsdu[OT_RADIO_FRAME_MAX_SIZE + 1];
|
|||||||
|
|
||||||
#if OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
#if OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||||
static otRadioIeInfo sTransmitIeInfo;
|
static otRadioIeInfo sTransmitIeInfo;
|
||||||
|
static otInstance * sInstance = NULL;
|
||||||
#endif
|
#endif
|
||||||
static otInstance *sInstance = NULL;
|
|
||||||
|
|
||||||
static otRadioFrame sAckFrame;
|
static otRadioFrame sAckFrame;
|
||||||
static bool sAckedWithFramePending;
|
static bool sAckedWithFramePending;
|
||||||
@@ -283,7 +283,11 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
|||||||
{
|
{
|
||||||
otError error;
|
otError error;
|
||||||
|
|
||||||
|
#if !OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT
|
||||||
|
OT_UNUSED_VARIABLE(aInstance);
|
||||||
|
#else
|
||||||
sInstance = aInstance;
|
sInstance = aInstance;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (sDisabled)
|
if (sDisabled)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user