[FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Sun Feb 14 20:08:01 EET 2021
Nuo Mi:
> ---
> libavutil/opt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/opt.c b/libavutil/opt.c
> index 590146b5fb..c554e9c063 100644
> --- a/libavutil/opt.c
> +++ b/libavutil/opt.c
> @@ -1735,7 +1735,7 @@ const AVClass *av_opt_child_class_iterate(const AVClass *parent, void **iter)
> #if FF_API_CHILD_CLASS_NEXT
> FF_DISABLE_DEPRECATION_WARNINGS
> if (parent->child_class_next) {
> - *iter = parent->child_class_next(*iter);
> + *iter = (void*)parent->child_class_next(*iter);
> return *iter;
> }
> FF_ENABLE_DEPRECATION_WARNINGS
>
This doesn't look like a fix; you just silenced a warning.
- Andreas
More information about the ffmpeg-devel
mailing list