[En-Nut-Discussion] ethernut and WinAVR-20080610
Thiago A. Corrêa
thiago.correa at gmail.com
Tue Jul 1 23:25:18 CEST 2008
>>>>>> "Thiago" == Thiago A Corrêa <thiago.correa at gmail.com> writes:
>
> >> > Why?: gcc4.4 added warning -Warray-bounds as default in -Wall, so
> >> we need to > disable warning or fix nut/arch/avr/dev/wlandrv.c
> >>
> >> I think fixing nut/arch/avr/dev/wlandrv.c is the right thing to do
>
> "avr-gcc-4.3 -c -mmcu=atmega128 -Wall -Warray-bounds -I ../../../include/
> wlandrv.c"
>
> also doesn't show the error on me...
>
I got it to build by adding:
/* Work around incorrect wlandrv.c:1005: error: array subscript is
above array bounds */
#pragma GCC diagnostic ignored "-Warray-bounds"
to wlandrv.c. This *should* be backwards compatible with gcc, other
compilers should ignore it (can't test this though) and it keeps the
checking on other files.
More information about the En-Nut-Discussion
mailing list