On Sun, Nov 13, 2016 at 1:27 PM, Diego Biurrun <[email protected]> wrote: > libavfilter/avfilter.c:295:20: warning: return discards ‘const’ qualifier > from pointer target type [-Wdiscarded-qualifiers] > --- > libavfilter/avfilter.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c > index 99531e5..9ddb648 100644 > --- a/libavfilter/avfilter.c > +++ b/libavfilter/avfilter.c > @@ -304,7 +304,11 @@ AVFilter *avfilter_get_by_name(const char *name) > > while ((f = avfilter_next(f))) > if (!strcmp(f->name, name)) > +#if !FF_API_NOCONST_GET_NAME > return f; > +#else > + return (AVFilter *) f; > +#endif > > return NULL; > } > --
I think this FF_API is scheduled for removal in the next bump, if so might as well endure for a few weeks rather than adding to the history imo (also that was my first deprecated api, time flies!) -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
