[FFmpeg-devel] [PATCH] Fix warnings in graphparser.c

Stefano Sabatini stefano.sabatini-lala
Tue May 19 23:01:45 CEST 2009


Hi,
fixes the warnings in graphparser.c:
graphparser.c: In function ?free_inout?:
graphparser.c:141: warning: passing argument 1 of ?av_free? discards qualifiers from pointer target type
graphparser.c: In function ?link_filter_inouts?:
graphparser.c:188: warning: passing argument 1 of ?av_free? discards qualifiers from pointer target type
graphparser.c: In function ?parse_outputs?:
graphparser.c:271: warning: passing argument 1 of ?av_free? discards qualifiers from pointer target type

Since name is supposed to be freed it shouldn't be declared const (but
maybe it should be const since it is not supposed to be changed, but
the "const" keyword cannot express the constraint "don't change it but
free it if you want").

Anyway IMO it looks more correct this way, also removes these
fastidious warnings.

Regards.
-- 
FFmpeg = Faithless and Fantastic Multimedia Proud Elected Geisha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphparser-fix-warnings.patch
Type: text/x-diff
Size: 399 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090519/1f63461d/attachment.patch>



More information about the ffmpeg-devel mailing list