[vlc-devel] [PATCH] libmp4: fix argument for formatting
Rémi Denis-Courmont
remi at remlab.net
Fri Mar 27 17:29:36 CET 2020
Le perjantaina 27. maaliskuuta 2020, 18.24.23 EET Alexandre Janniaux a écrit :
> I know that va_arg promotes to int, but it has nothing to do
> with the warning itself which is to ensure the format matches
> the value given from the calling site. AFAIK the specification
> doesn't specify the warnings.
Whether such case grants a warning is subjective, and GCC devs seem to think
that it does not.
I don't see the point of this patch either way. This is dead code, and if you
don't want it to warn, you can just use %u.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list