Skip to content

Commit

Permalink
greenhills: fix enumerated type mixed using build warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
guoshichao authored and xiaoxiang781216 committed Aug 24, 2024
1 parent cd52edd commit b150722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ioexpander/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b150722

Please sign in to comment.