From dec1178b4dc582a9aaca09dfa9d016e389c311f6 Mon Sep 17 00:00:00 2001 From: Xiao Ma Date: Tue, 29 Aug 2017 12:14:37 +0800 Subject: [PATCH] [efr32] fix build casting warnings on pointer type (#2143) --- examples/platforms/efr32/radio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platforms/efr32/radio.c b/examples/platforms/efr32/radio.c index 8369e3a6d..e601c6007 100644 --- a/examples/platforms/efr32/radio.c +++ b/examples/platforms/efr32/radio.c @@ -209,7 +209,7 @@ void otPlatRadioSetExtendedAddress(otInstance *aInstance, const otExtAddress *aA aAddress->m8[7], aAddress->m8[6], aAddress->m8[5], aAddress->m8[4], aAddress->m8[3], aAddress->m8[2], aAddress->m8[1], aAddress->m8[0]); - RAIL_IEEE802154_SetLongAddress(aAddress->m8); + RAIL_IEEE802154_SetLongAddress((uint8_t *)aAddress->m8); } void otPlatRadioSetShortAddress(otInstance *aInstance, uint16_t aAddress) @@ -613,7 +613,7 @@ void RAILCb_IEEE802154_DataRequestCommand(RAIL_IEEE802154_Address_t *aAddress) if (sIsSrcMatchEnabled) { if ((aAddress->length == RAIL_IEEE802154_LongAddress && - findSrcMatchExtEntry(aAddress->longAddress) >= 0) || + findSrcMatchExtEntry((otExtAddress *)aAddress->longAddress) >= 0) || (aAddress->length == RAIL_IEEE802154_ShortAddress && findSrcMatchShortEntry(aAddress->shortAddress) >= 0)) {