[En-Nut-Discussion] ethernut and WinAVR-20080610

Andrzej Lawrynowicz a.lawrynowicz at gmail.com
Sat Jun 28 17:01:02 CEST 2008


Hello

To build ethernut with gcc4.4 (WinAVR-20080610) you need to add
"-Wno-array-bounds" in
/nut/Makedefs.avr-gcc
 in line starting with
CPFLAGS=

Example:
CPFLAGS  = $(MCFLAGS) -Os -fno-delete-null-pointer-checks -Wall
-Wno-array-bounds -Werror -Wstrict-prototypes -Wa,-ahlms=$(<F:.c=.lst)
$(DEFS)

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

Don't use this option in makefiles prior to gcc4.4 because you will get
error
cc1.exe: error: unrecognized command line option "-Wno-array-bounds"


-- 
Regards
Andrzej Ławrynowicz


More information about the En-Nut-Discussion mailing list