Skip to content

Commit b150722

Browse files
extinguishxiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent cd52edd commit b150722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ioexpander/gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static int gpio_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
330330
(FAR enum gpio_pintype_e *)((uintptr_t)arg);
331331
DEBUGASSERT(ptr != NULL);
332332

333-
*ptr = dev->gp_pintype;
333+
*ptr = (FAR enum gpio_pintype_e)dev->gp_pintype;
334334
ret = OK;
335335
}
336336
break;

0 commit comments

Comments
 (0)