Re: [FFmpeg-devel] [PATCHv2] avformat/format: silence -Wdiscarded-qualifiers

2015-09-19 Thread Michael Niedermayer
On Sat, Sep 19, 2015 at 05:37:14PM -0400, Ganesh Ajjanagadde wrote: > lpd.buf is non-const and discards the const qualifier of zerobuffer. > This fixes -Wdiscarded-qualifiers observed with a variety of compilers, > including GCC 5.2. > Note that this does not change the type of zerobuffer, and mer

[FFmpeg-devel] [PATCHv2] avformat/format: silence -Wdiscarded-qualifiers

2015-09-19 Thread Ganesh Ajjanagadde
lpd.buf is non-const and discards the const qualifier of zerobuffer. This fixes -Wdiscarded-qualifiers observed with a variety of compilers, including GCC 5.2. Note that this does not change the type of zerobuffer, and merely makes the intent explicit. Signed-off-by: Ganesh Ajjanagadde --- lib