[FFmpeg-devel] Remove another warning

Luca Abeni lucabe72
Fri Feb 15 10:33:27 CET 2008


Hi all,

this one fixes
utils.c: In function ?avcodec_get_context_defaults2?:
utils.c:793: warning: assignment discards qualifiers from pointer target type
by changing rc_eq to "const char *". The other changes included in the patch
are needed to avoid generating new warnings after changing rc_eq's type.

Speaking about warnings: I see a lot of
"warning: cast discards qualifiers from pointer target type"
generated by casts from "const type *" to "type *"... I would be tempted
to submit a mega-patch removing those (useless?) casts (this would change
the warning in a different one, but would simplify the code by removing the
casts). What do people think about it?
(as an example, look at utils.c:901).


				Thanks,
					Luca
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-1-utils-warning-1.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080215/1a49376d/attachment.asc>



More information about the ffmpeg-devel mailing list