[En-Nut-Discussion] WinAVR-20080411

Ernst Stippl ernst at stippl.org
Thu Apr 24 07:57:37 CEST 2008


Hi!

A quick look into winavr_20080411 yielded:

an error message during the compilation of wlandrv.c saying 

"Wlandrv.c:1005: error: array subscript is above array bounds"

Goggling with "gcc 4.3.3 array subscript is above array bounds"

had a hit on: 

 http://gcc.gnu.org/gcc-4.3/changes.html : down the page it says:

-Warray-bounds has been added and is now enabled by default for -Wall . It
produces warnings for array subscripts that can be determined at compile
time to be always out of bounds. -Wno-array-bounds will disable the warning.



Line 1005 in wlandrv.c is a "memcpy" function call. Maybe the definitions of
the call parameters in line 872/873 have to do with the error. 


Regards
Ernst

 

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Nathan Moore
Gesendet: Mittwoch, 23. April 2008 16:28
An: Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] WinAVR-20080411

On Tue, Apr 22, 2008 at 5:39 PM, Dusan Ferbas <dferbas at etech.cz> wrote:

> Hi guys,
>
> is anybody evaluating the new WinAVR compiler ?
>
> In <avr/sleep.h>, they removed _SLEEP_MODE_MASK definition, which of
> course disables adc.c and wlandrv.c compilation.


I found that yesterday but hadn't investigated it much since I'm not using
either module.
It gave me an array indexing error in wlandrv.c on a line that didn't make
sense to me,
so I had only associated adc.c with that.
I was just working around those errors to get the rest of Nut to build.

Nathan
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



-- 
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date: 22.04.2008
08:15





More information about the En-Nut-Discussion mailing list