simplelink: fix strict aliasing build warning in RF driver

Small fix to prevent strict aliasing warning, which becomes an error
on Shippable.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
Vincent Wan 2020-01-17 14:04:17 -08:00 committed by Kumar Gala
parent e45a3f8ed2
commit ab9b289a10
1 changed files with 2 additions and 1 deletions

View File

@ -1010,7 +1010,8 @@ static bool RF_ratDispatchTime(uint32_t* dispatchTimeClockTicks)
else
{
/* Decode the compareTime field. */
uint32_t compareTime = ((rfc_CMD_SET_RAT_CMP_t*)&ratCh->chCmd)->compareTime;
rfc_CMD_SET_RAT_CMP_t* cmd = (rfc_CMD_SET_RAT_CMP_t *)&ratCh->chCmd;
uint32_t compareTime = cmd->compareTime;
/* Calculate the remained time until this RAT event. The calculation takes
into account the minimum power cycle time. */