Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 9.0 failed to build kernel for kernel=LINKITSMART7688



On Tue, Mar 10, 2020 at 11:49:24AM +0100, eric koorn wrote:
> /k/base/bld/netbsd-9/src/sys/arch/mips/ralink/ralink_gpio.c: In
> function 'ra_gpio_toggle_LED.part.7':
> /k/base/bld/netbsd-9/src/sys/arch/mips/ralink/ralink_gpio.c:1591:34:
> error: array subscript is above array bounds [-Werror=array-bounds]
>   ra_gpio_pin_write(sc, led_array1[led_index++], 0);
>                         ~~~~~~~~~~^~~~~~~~~~~~~

I could reproduce in -current, but I don't see how gcc comes to this
conclusion. I commited a slightly different fix.

Martin


Home | Main Index | Thread Index | Old Index