Re: [hatari-devel] Compil warnings with the new core

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


Thanks for the patchs.

Let's forget the memory warnings for now, we'll see this later.

Regards

Laurent


Le 19/01/2012 23:20, Eero Tamminen a écrit :
Hi,

On torstai 19 tammikuu 2012, Laurent Sallafranque wrote:
Hi Eero,

While compiling, I get the wollowing warnings actaully (new core)

...
/home/laurent/Atari/hatari/src/cpu/cpummu.c:254:6: attention : no
previous prototype for ‘mmu_dump_atc’ [-Wmissing-prototypes]
/home/laurent/Atari/hatari/src/cpu/cpummu.c: In function
‘mmu_dump_tables’: /home/laurent/Atari/hatari/src/cpu/cpummu.c:274:2:
attention : passing argument 1 of ‘mmu_dump_ttr’ from incompatible
pointer type [enabled by default]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:54:13: note: expected ‘const
char *’ but argument is of type ‘const int *’
/home/laurent/Atari/hatari/src/cpu/cpummu.c:275:2: attention : passing
argument 1 of ‘mmu_dump_ttr’ from incompatible pointer type [enabled by
default]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:54:13: note: expected ‘const
char *’ but argument is of type ‘const int *’
/home/laurent/Atari/hatari/src/cpu/cpummu.c:276:2: attention : passing
argument 1 of ‘mmu_dump_ttr’ from incompatible pointer type [enabled by
default]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:54:13: note: expected ‘const
char *’ but argument is of type ‘const int *’
/home/laurent/Atari/hatari/src/cpu/cpummu.c:277:2: attention : passing
argument 1 of ‘mmu_dump_ttr’ from incompatible pointer type [enabled by
default]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:54:13: note: expected ‘const
char *’ but argument is of type ‘const int *’

Fixed.  (with a patch with with you had a conflict earlier.)


/home/laurent/Atari/hatari/src/cpu/memory.c:612:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
These are assignments of const strings like "foobar" to memory banks.
Cannot be fixed easily, you would need to propagate consts all over
WinUAE code.


[ 39%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/fpp.c.o
/home/laurent/Atari/hatari/src/cpu/fpp.c:261:9: attention : no previous
prototype for ‘get_fpsr’ [-Wmissing-prototypes]
Fixed with the other patch with which you had earlier a conflict.


	- Eero







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