[FFmpeg-devel] [PATCH] avutil/tests/random_seed: seeds[] is uint32_t, therefore use PRIX32 macro

Peter Ross pross at xvid.org
Sat Dec 15 04:13:32 EET 2018


On Sat, Dec 15, 2018 at 03:10:52AM +0100, Carl Eugen Hoyos wrote:
> 2018-12-15 3:07 GMT+01:00, Peter Ross <pross at xvid.org>:
> > squelch format type warning
> > ---
> >  libavutil/tests/random_seed.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavutil/tests/random_seed.c b/libavutil/tests/random_seed.c
> > index 78067dbe41..bf0c6c7986 100644
> > --- a/libavutil/tests/random_seed.c
> > +++ b/libavutil/tests/random_seed.c
> > @@ -47,7 +47,7 @@ int main(void)
> >              retry:;
> >          }
> >          if (retry >= 3) {
> > -            printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]);
> > +            printf("rsf %d: FAIL at %d with %"PRIX32"\n", rsf, j,
> > seeds[j]);
> 
> Just curious: What shows a warning here?

djgpp: uint32_t is an unsigned long there.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181215/92ab036a/attachment.sig>


More information about the ffmpeg-devel mailing list