Re: [hatari-devel] Compiler Warnings

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Sun, Nov 24, 2013 at 10:01 AM, David Savinkoff <dsavnkff@xxxxxxxxx> wrote:
> Hi,
>
> I compiled oldcore Hatari with gcc-4.4.7 and got some warnings that don't
> appear with gcc-4.1.2:
>
>
> Scanning dependencies of target Falcon
>
> [ 28%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp.c.o
> hatari.4748/src/falcon/dsp.c: In function ‘DSP_DisasmMemory’:
> hatari.4748/src/falcon/dsp.c:339: warning: array subscript is above array bounds
>
> [ 30%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp_cpu.c.o
> hatari.4748/src/falcon/dsp_cpu.c: In function ‘dsp_btst_pp’:
> hatari.4748/src/falcon/dsp_cpu.c:1226: warning: array subscript is above array bounds
> hatari.4748/src/falcon/dsp_cpu.c: In function ‘dsp_jset_pp’:
> hatari.4748/src/falcon/dsp_cpu.c:1226: warning: array subscript is above array bounds
> hatari.4748/src/falcon/dsp_cpu.c: In function ‘dsp_jclr_pp’:
> hatari.4748/src/falcon/dsp_cpu.c:1226: warning: array subscript is above array bounds
> hatari.4748/src/falcon/dsp_cpu.c: In function ‘dsp_bchg_pp’:
> hatari.4748/src/falcon/dsp_cpu.c:1226: warning: array subscript is above array bounds
> hatari.4748/src/falcon/dsp_cpu.c: In function ‘dsp_bset_pp’:
> hatari.4748/src/falcon/dsp_cpu.c:1226: warning: array subscript is above array bounds
>

Does not happen with gcc 4.8, nor clang.
http://antarctica.no/~hatari/latest/linux/



-- 
chs,



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/