[vlc-devel] [PATCH] Fixed warnings on missed struct fields initializers
Maxim Bublis
b at codemonkey.ru
Mon Dec 2 13:17:40 CET 2013
>
> > - AVPacket packet = {0};
> > + AVPacket packet;
>
> > - { {0}, { 0, { 0 }, 0, 0 } }
> > + { {0}, { 0, { { {0, 0}, {0, 0} } }, 0, 0 } }
>
> This warning is a gcc bug, fixed in recent versions.
> Setting it to 0 should initialize the whole struct to 0.
> AVPacket packet = 0;
>
> That's not needed, but it that kills an unwanted warning for some ppl..
>
I'm using Clang, so it is not gcc bug.
--
Maxim Bublis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131202/a13eab5a/attachment.html>
More information about the vlc-devel
mailing list