Re: [hatari-devel] My cross-compiling experience |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] My cross-compiling experience
- From: Christian Zietz <czietz@xxxxxxx>
- Date: Sun, 3 May 2020 14:00:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1588507213; bh=uYDoTDsIF1SIjVA15CVaAbArVOrFTQnsHbwtjn5nGno=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=a5Nb5td7+NUxLqdr+eTBVNw8j2t9bnLkNwa68SlpO+pY5IvUkDyh9gdIuL+elsryI 4fZHUwssEud8nY1ZMc0wuexhONaExm02XnSW2fTjnWsSbwcBa9BNoiOMy+N0dhHHYk l1siJClZ5KTkmTVzzO8eG6ysTshW96/kUrq7393s=
Christian Zietz schrieb:
> The warnings are attached.
BTW: With the latest code from the Git repo, I get new warnings.
#include <math.h> is now missing in several files. See attached log.
Regards
Christian
--
Christian Zietz - CHZ-Soft - czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA
/home/czietz/hatari/src/blitter.c: In function ‘Blitter_StatsUpdateRate’:
/home/czietz/hatari/src/blitter.c:321:13: warning: implicit declaration of function ‘ceil’ [-Wimplicit-function-declaration]
percent = ceil ( 100.0 * BlitterVars.total_cycles / period_cycles );
^~~~
/home/czietz/hatari/src/blitter.c:321:13: warning: incompatible implicit declaration of built-in function ‘ceil’
/home/czietz/hatari/src/blitter.c:321:13: note: include ‘<math.h>’ or provide a declaration of ‘ceil’
/home/czietz/hatari/src/floppy_stx.c: In function ‘FDC_ReadSector_STX’:
/home/czietz/hatari/src/floppy_stx.c:1734:13: warning: implicit declaration of function ‘rint’ [-Wimplicit-function-declaration]
Timing = rint ( Total_cur - Total_prev );
^~~~
/home/czietz/hatari/src/floppy_stx.c:1734:13: warning: incompatible implicit declaration of built-in function ‘rint’
/home/czietz/hatari/src/floppy_stx.c:1734:13: note: include ‘<math.h>’ or provide a declaration of ‘rint’
/home/czietz/hatari/src/floppy_stx.c:1740:13: warning: incompatible implicit declaration of built-in function ‘rint’
Timing = rint ( Total_cur - Total_prev );
^~~~
/home/czietz/hatari/src/floppy_stx.c:1740:13: note: include ‘<math.h>’ or provide a declaration of ‘rint’
/home/czietz/hatari/src/floppy_stx.c: In function ‘FDC_ReadTrack_STX’:
/home/czietz/hatari/src/floppy_stx.c:1961:13: warning: incompatible implicit declaration of built-in function ‘rint’
Timing = rint ( Total_cur - Total_prev );
^~~~
/home/czietz/hatari/src/floppy_stx.c:1961:13: note: include ‘<math.h>’ or provide a declaration of ‘rint’
/home/czietz/hatari/src/fdc.c: In function ‘FDC_FdcCyclesToCpuCycles’:
/home/czietz/hatari/src/fdc.c:760:14: warning: implicit declaration of function ‘rint’ [-Wimplicit-function-declaration]
CpuCycles = rint ( ( (Uint64)FdcCycles * 8021247.L ) / MachineClocks.FDC_Freq );
^~~~
/home/czietz/hatari/src/fdc.c:760:14: warning: incompatible implicit declaration of built-in function ‘rint’
/home/czietz/hatari/src/fdc.c:760:14: note: include ‘<math.h>’ or provide a declaration of ‘rint’
/home/czietz/hatari/src/fdc.c: In function ‘FDC_CpuCyclesToFdcCycles’:
/home/czietz/hatari/src/fdc.c:785:14: warning: incompatible implicit declaration of built-in function ‘rint’
FdcCycles = rint ( ( (Uint64)CpuCycles * MachineClocks.FDC_Freq ) / 8021247.L );
^~~~
/home/czietz/hatari/src/fdc.c:785:14: note: include ‘<math.h>’ or provide a declaration of ‘rint’
/home/czietz/hatari/src/screen.c:348:15: warning: implicit declaration of function ‘floorf’ [-Wimplicit-function-declaration]
if (scale == floorf(scale))
^~~~~~
/home/czietz/hatari/src/screen.c:348:15: warning: incompatible implicit declaration of built-in function ‘floorf’
/home/czietz/hatari/src/screen.c:348:15: note: include ‘<math.h>’ or provide a declaration of ‘floorf’
/home/czietz/hatari/src/vdi.c: In function ‘VDI_ByteLimit’:
/home/czietz/hatari/src/vdi.c:87:10: warning: implicit declaration of function ‘sqrt’ [-Wimplicit-function-declaration]
ratio = sqrt(MAX_VDI_BYTES) / sqrt(size);
^~~~
/home/czietz/hatari/src/vdi.c:87:10: warning: incompatible implicit declaration of built-in function ‘sqrt’
/home/czietz/hatari/src/vdi.c:87:10: note: include ‘<math.h>’ or provide a declaration of ‘sqrt’