[hatari-devel] Compil warnings with the new core |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi Eero,
While compiling, I get the wollowing warnings actaully (new core)
....
[ 23%] Building C object src/debug/CMakeFiles/Debug.dir/symbols.c.o
[ 24%] Building C object src/debug/CMakeFiles/Debug.dir/68kDisass.c.o
/home/laurent/Atari/hatari/src/debug/68kDisass.c: In function
‘Disass68k_loop’:
/home/laurent/Atari/hatari/src/debug/68kDisass.c:2373:15: attention :
array subscript is above array bounds [-Warray-bounds]
Linking C static library libDebug.a
[ 24%] Built target Debug
Scanning dependencies of target build68k
[ 24%] Building C object src/cpu/CMakeFiles/build68k.dir/build68k.c.o
/home/laurent/Atari/hatari/src/cpu/build68k.c: In function ‘main’:
/home/laurent/Atari/hatari/src/cpu/build68k.c:83:7: attention : variable
‘patbits’ set but not used [-Wunused-but-set-variable]
Linking C executable build68k
[ 24%] Built target build68k
[ 25%] Generating cpudefs.c
Scanning dependencies of target gencpu
[ 26%] Building C object src/cpu/CMakeFiles/gencpu.dir/gencpu.c.o
/home/laurent/Atari/hatari/src/cpu/gencpu.c: In function ‘read_counts’:
/home/laurent/Atari/hatari/src/cpu/gencpu.c:175:6: attention : variable
‘ret’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/src/cpu/gencpu.c: In function ‘gen_opcode’:
/home/laurent/Atari/hatari/src/cpu/gencpu.c:2286:7: attention : format
‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type
‘long unsigned int’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c:2309:4: attention : format
‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type
‘long unsigned int’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c:2314:6: attention : format
‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type
‘long unsigned int’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c:2374:3: attention : format
‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type
‘long unsigned int’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c: In function
‘generate_one_opcode’:
/home/laurent/Atari/hatari/src/cpu/gencpu.c:3892:4: attention : format
‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type
‘long int’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c:3892:4: attention : format
‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long int’
[-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c:4011:4: attention : format
‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type
‘long int’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c:4011:4: attention : format
‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long int’
[-Wformat]
/home/laurent/Atari/hatari/src/cpu/gencpu.c: Hors de toute fonction :
/home/laurent/Atari/hatari/src/cpu/gencpu.c:222:13: attention :
‘cpulimit’ defined but not used [-Wunused-function]
[ 26%] Building C object src/cpu/CMakeFiles/gencpu.dir/readcpu.c.o
[ 27%] Building C object src/cpu/CMakeFiles/gencpu.dir/cpudefs.c.o
Linking C executable gencpu
[ 27%] Built target gencpu
[ 28%] Generating cpuemu_0.c, cpuemu_11.c, cpuemu_12.c, cpuemu_20.c,
cpuemu_21.c, cpuemu_31.c, cpustbl.c
Scanning dependencies of target UaeCpu
[ 29%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpudefs.c.o
[ 30%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_0.c.o
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c: In function
‘op_e8c0_0_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c:32608:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c: In function
‘op_e9c0_0_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c:32787:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c: In function
‘op_ebc0_0_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c:33118:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c: In function
‘op_edc0_0_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_0.c:33449:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
[ 30%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_11.c.o
[ 31%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_12.c.o
[ 32%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_20.c.o
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c: In function
‘op_e8c0_20_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c:30879:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c: In function
‘op_e9c0_20_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c:31050:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c: In function
‘op_ebc0_20_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c:31367:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c: In function
‘op_edc0_20_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_20.c:31684:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
[ 33%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_21.c.o
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c: In function
‘op_e8c0_21_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c:32741:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c: In function
‘op_e9c0_21_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c:32920:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c: In function
‘op_ebc0_21_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c:33251:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c: In function
‘op_edc0_21_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_21.c:33582:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
[ 33%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_31.c.o
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c: In function
‘op_e8c0_31_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c:33701:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c: In function
‘op_e9c0_31_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c:33880:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c: In function
‘op_ebc0_31_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c:34211:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c: In function
‘op_edc0_31_ff’:
/home/laurent/Atari/hatari/build/src/cpu/cpuemu_31.c:34542:12: attention
: variable ‘bdata’ set but not used [-Wunused-but-set-variable]
[ 34%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpummu.c.o
/home/laurent/Atari/hatari/src/cpu/cpummu.c: In function ‘mmu_dump_ttr’:
/home/laurent/Atari/hatari/src/cpu/cpummu.c:70:5: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has
type ‘uae_u32’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:70:5: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has
type ‘uae_u32’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:70:5: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has
type ‘uae_u32’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c: Hors de toute fonction :
/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 *’
/home/laurent/Atari/hatari/src/cpu/cpummu.c: In function ‘mmu_fill_atc_l1’:
/home/laurent/Atari/hatari/src/cpu/cpummu.c:415:4: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has
type ‘uaecptr’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c: In function
‘mmu_lookup_pagetable’:
/home/laurent/Atari/hatari/src/cpu/cpummu.c:477:3: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has
type ‘uaecptr’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:490:3: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has
type ‘uaecptr’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:513:3: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has
type ‘uaecptr’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:513:3: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has
type ‘uae_u32’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/cpummu.c:513:3: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has
type ‘uae_u32’ [-Wformat]
[ 35%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpustbl.c.o
[ 36%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/custom.c.o
[ 36%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/hatari-glue.c.o
[ 37%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/memory.c.o
/home/laurent/Atari/hatari/src/cpu/memory.c:612:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:620:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:628:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:636:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:644:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:652:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:660:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
/home/laurent/Atari/hatari/src/cpu/memory.c:668:5: attention :
initialization discards ‘const’ qualifier from pointer target type
[enabled by default]
[ 38%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/newcpu.c.o
/home/laurent/Atari/hatari/src/cpu/newcpu.c: In function ‘m68k_dumpstate’:
/home/laurent/Atari/hatari/src/cpu/newcpu.c:4167:3: attention : format
‘%lX’ expects argument of type ‘long unsigned int’, but argument 4 has
type ‘uae_u32’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/newcpu.c:4171:3: attention : format
‘%lX’ expects argument of type ‘long unsigned int’, but argument 4 has
type ‘uae_u32’ [-Wformat]
/home/laurent/Atari/hatari/src/cpu/newcpu.c:4227:3: attention : format
‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has
type ‘uaecptr’ [-Wformat]
[ 39%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/readcpu.c.o
[ 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]
Linking C static library libUaeCpu.a
[ 40%] Built target UaeCpu
Scanning dependencies of target Falcon
[ 40%] Building C object src/falcon/CMakeFiles/Falcon.dir/crossbar.c.o
[ 41%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp.c.o
....
Regards
Laurent