look at same/similar patches like yours that have been already rejected. On Fri, Feb 26, 2021 at 9:48 AM Guo, Yejun <[email protected]> wrote:
> src/libavformat/protocols.c: In function ‘avio_enum_protocols’: > src/libavformat/protocols.c:116:7: warning: assignment discards ‘const’ > qualifier from pointer target type [-Wdiscarded-qualifiers] > p = p ? p + 1 : url_protocols; > ^ > > Signed-off-by: Guo, Yejun <[email protected]> > --- > libavformat/protocols.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/protocols.c b/libavformat/protocols.c > index 7df18fbb3b..86cde84a31 100644 > --- a/libavformat/protocols.c > +++ b/libavformat/protocols.c > @@ -113,7 +113,7 @@ const char *avio_enum_protocols(void **opaque, int > output) > { > const URLProtocol **p = *opaque; > > - p = p ? p + 1 : url_protocols; > + p = p ? p + 1 : (const URLProtocol **)url_protocols; > *opaque = p; > if (!*p) { > *opaque = NULL; > -- > 2.17.1 > > _______________________________________________ > ffmpeg-devel mailing list > [email protected] > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
