[vlc-devel] [PATCH] Fixed warnings on missed struct fields initializers
Francois Cartegnie
fcvlcdev at free.fr
Mon Dec 2 13:07:10 CET 2013
Le 02/12/2013 12:55, Maxim Bublis a écrit :
> - 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..
Francois
More information about the vlc-devel
mailing list