Re: [hatari-devel] 2 warnings while compiling |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Le 27/12/2013 23:34, Laurent Sallafranque a écrit :
Here is the result : [ 48%] Building C object src/CMakeFiles/hatari.dir/fdc.c.o /home/laurent/Atari/hatari/src/fdc.c: In function ‘FDC_IndexPulse_Update’: /home/laurent/Atari/hatari/src/fdc.c:1319:3: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘Uint64’ [-Wformat] /home/laurent/Atari/hatari/src/fdc.c: In function ‘FDC_IndexPulse_Init’: /home/laurent/Atari/hatari/src/fdc.c:1353:2: attention : format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘Uint64’ [-Wformat]
That's strange, Sint64 and Uint64 are supposed to be "long long int", at least that's the case for me when compiling in 32 bits mode.
Are you compiling in 64 bits mode maybe ?But those 2 types are defined by SDL, so I don't know what SDL chose in your case.
You could try to do a "printf ("size=%d\n" , sizeof(Uint64) )" to see what you get in your case with your setup (it should be 4)
Nicolas
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |