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

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.mips.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.