greenhills: fix enumerated type mixed using build warning
CC: irq/irq_initialize.c "ioexpander/gpio.c", line 386: warning #188-D: enumerated type mixed with another type *ptr = dev->gp_pintype; ^ Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
cd52edd6d7
commit
b150722efb
@ -330,7 +330,7 @@ static int gpio_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
(FAR enum gpio_pintype_e *)((uintptr_t)arg);
|
(FAR enum gpio_pintype_e *)((uintptr_t)arg);
|
||||||
DEBUGASSERT(ptr != NULL);
|
DEBUGASSERT(ptr != NULL);
|
||||||
|
|
||||||
*ptr = dev->gp_pintype;
|
*ptr = (FAR enum gpio_pintype_e)dev->gp_pintype;
|
||||||
ret = OK;
|
ret = OK;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user