[PATCH u-boot-marvell v3 08/39] tools: kwboot: Fix comparison of integers with different size
Stefan Roese
sr at denx.de
Fri Oct 1 08:16:02 CEST 2021
On 24.09.21 23:06, Marek Behún wrote:
> From: Marek Behún <marek.behun at nic.cz>
>
> The compiler complains that we are comparing int with size_t when
> compiled with -W.
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> tools/kwboot.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tools/kwboot.c b/tools/kwboot.c
> index 88353d19c0..3d9f73e697 100644
> --- a/tools/kwboot.c
> +++ b/tools/kwboot.c
> @@ -352,8 +352,7 @@ kwboot_xm_makeblock(struct kwboot_block *block, const void *data,
> size_t size, int pnum)
> {
> const size_t blksz = sizeof(block->data);
> - size_t n;
> - int i;
> + size_t i, n;
>
> block->soh = SOH;
> block->pnum = pnum;
>
Viele Grüße,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list