Maybe cast the size to unsigned long to make it match the format.
M.
pack-redundant.c: In function `main': pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
threads / discuss / 2656
Subject: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Maybe cast the size to unsigned long to make it match the format.
M.
pack-redundant.c: In function `main': pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Re: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Morten Welinder wrote:
> Maybe cast the size to unsigned long to make it match the format. > > M. > > pack-redundant.c: In function `main': > pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Or use %zu for the format.
-hpa
Re: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
In article <4383CA08.4080604@zytor.com> (at Tue, 22 Nov 2005 17:46:48 -0800), "H. Peter Anvin" <hpa@zytor.com> says:
> Morten Welinder wrote: > > Maybe cast the size to unsigned long to make it match the format. > > > > M. > > > > pack-redundant.c: In function `main': > > pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3) > > Or use %zu for the format.
It is not widely supported, I think.
--yoshfuji