[FFmpeg-devel] Remove another warning
Fri Feb 15 10:33:27 CET 2008
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).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel