[nrf528xx] fix compiler warning (#4135)

sInstance was unused without OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT.
This commit is contained in:
Rafał Kuźnia
2019-08-30 09:01:45 -07:00
committed by Jonathan Hui
parent ed0939c45a
commit 528e7d5992
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -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)
{
+5 -1
View File
@@ -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)
{