From b150722efb360647e8c8f00c83e4492d57922a14 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Wed, 24 Jul 2024 11:09:53 +0800 Subject: [PATCH] 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 --- drivers/ioexpander/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ioexpander/gpio.c b/drivers/ioexpander/gpio.c index ef27ae640ae..56ba35130e0 100644 --- a/drivers/ioexpander/gpio.c +++ b/drivers/ioexpander/gpio.c @@ -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); DEBUGASSERT(ptr != NULL); - *ptr = dev->gp_pintype; + *ptr = (FAR enum gpio_pintype_e)dev->gp_pintype; ret = OK; } break;