[FFmpeg-devel] [PATCHv2] avdevice/libdc1394: silence -Wdiscarded-qualifiers

Michael Niedermayer michaelni at gmx.at
Sun Sep 20 22:33:24 CEST 2015


On Sun, Sep 20, 2015 at 09:11:57AM -0400, Ganesh Ajjanagadde wrote:
> fmt, fps are non-const as they are needed to loop over a static const array.
> Thus the patch explicitly casts them to be non-const. This suppresses
> -Wdiscarded-qualifiers seen in e.g
> http://fate.ffmpeg.org/log.cgi?time=20150919100330&log=compile&slot=x86_64-archlinux-gcc-enableshared.
> 
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
>  libavdevice/libdc1394.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

solved differently (without casts)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150920/258e7c88/attachment.sig>


More information about the ffmpeg-devel mailing list