threads / discuss / 2656

pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)

Subject: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)

## tl;dr

3 messages between Nov 23, 2005 and Nov 23, 2005.

replies: 2people: 3as markdown or json

Morten Welinder· Nov 23, 2005, 01:34 UTC · lore
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)

H. Peter Anvin· Nov 23, 2005, 01:46 UTC · re: Morten Welinder · lore

Re: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)

Morten Welinder wrote:
Show 6 quoted lines
> 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
YOSHIFUJI Hideaki / 吉藤英明· Nov 23, 2005, 00:49 UTC · re: H. Peter Anvin · lore

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:
Show 9 quoted lines
> 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

← back to recent threads