[FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier
Nicolas George
george at nsup.org
Sun Apr 4 12:56:56 EEST 2021
Gyan Doshi (12021-04-04):
> > Fixes the following GCC warning:
> > warning: format â%lldâ expects argument of type âlong long intâ,
> > but argument 4 has type âint64_tâ {aka âlong intâ} [-Wformat=]
>
> Weird. I switched to lld because gcc (10.2) recommended it.
>
> In fact, I just looked through the build log for my Windows build compiled
> minutes ago, and there's no warning.
There is nothing weird about it: the int64_t type and its type
specifiers exist specifically because long and long long have different
meanings on different compilers.
If you are writing new C code with explicit references to long or short,
you are almost certainly doing it wrong.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210404/d5959a1b/attachment.sig>
More information about the ffmpeg-devel
mailing list