[hatari-devel] Some warnings while compiling

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


Hi,

While compiling the latest hatari, I get the following warnings (OLD_CPU and NEW_CPU)

[ 40%] Building C object src/debug/CMakeFiles/Debug.dir/symbols.c.o
/home/laurent/Atari/hatari/src/debug/symbols.c: In function ‘symbols_load_binary’: /home/laurent/Atari/hatari/src/debug/symbols.c:243:7: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] /home/laurent/Atari/hatari/src/debug/symbols.c:245:7: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] /home/laurent/Atari/hatari/src/debug/symbols.c:247:7: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] /home/laurent/Atari/hatari/src/debug/symbols.c:251:7: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] /home/laurent/Atari/hatari/src/debug/symbols.c:257:7: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
[ 41%] Building C object src/debug/CMakeFiles/Debug.dir/profile.c.o
/home/laurent/Atari/hatari/src/debug/profile.c: In function ‘output_counter_info’: /home/laurent/Atari/hatari/src/debug/profile.c:70:2: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profile.c:70:2: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profile.c:70:2: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profile.c:73:3: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profile.c: In function ‘output_caller_info’: /home/laurent/Atari/hatari/src/debug/profile.c:103:11: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘Uint64’ [-Wformat]
[ 42%] Building C object src/debug/CMakeFiles/Debug.dir/profilecpu.c.o
/home/laurent/Atari/hatari/src/debug/profilecpu.c: In function ‘show_cpu_area_stats’: /home/laurent/Atari/hatari/src/debug/profilecpu.c:163:3: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profilecpu.c:174:3: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Uint64’ [-Wformat]
[ 43%] Building C object src/debug/CMakeFiles/Debug.dir/profiledsp.c.o
/home/laurent/Atari/hatari/src/debug/profiledsp.c: In function ‘Profile_DspShowStats’: /home/laurent/Atari/hatari/src/debug/profiledsp.c:90:3: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profiledsp.c:96:3: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profiledsp.c:99:3: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profiledsp.c: In function ‘Profile_DspShowCycles’: /home/laurent/Atari/hatari/src/debug/profiledsp.c:204:10: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profiledsp.c: In function ‘Profile_DspShowCounts’: /home/laurent/Atari/hatari/src/debug/profiledsp.c:259:11: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/debug/profiledsp.c:284:10: attention : format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘Uint64’ [-Wformat]
[ 43%] Building C object src/debug/CMakeFiles/Debug.dir/natfeats.c.o


[ 60%] Building C object src/CMakeFiles/hatari.dir/gemdos.c.o
/home/laurent/Atari/hatari/src/gemdos.c: In function ‘GemDOS_UpdateLastProgram’: /home/laurent/Atari/hatari/src/gemdos.c:477:7: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]

Regards

Laurent




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