Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-03-09 Thread Chad Fraleigh
On 3/9/2021 5:30 AM, Nuo Mi wrote: On Tue, Mar 9, 2021 at 3:17 AM Chad Fraleigh wrote: On 2/14/2021 10:12 AM, Nuo Mi wrote: On Mon, Feb 15, 2021 at 2:08 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: Nuo Mi: --- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-03-09 Thread Nicolas George
Nuo Mi (12021-03-09): > Or more aggressively, is it feasible to treat all warnings as errors in the > future? :) No. Warnings come and go, and a lot of new warnings are bogus. For example the new warning that tells you that snprintf(buf, sizeof(buf), "%d", x) will overflow if sizeof(buf) < 11 eve

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-03-09 Thread Nuo Mi
On Tue, Mar 9, 2021 at 3:17 AM Chad Fraleigh wrote: > On 2/14/2021 10:12 AM, Nuo Mi wrote: > > On Mon, Feb 15, 2021 at 2:08 AM Andreas Rheinhardt < > > andreas.rheinha...@gmail.com> wrote: > > > >> Nuo Mi: > >>> --- > >>> libavutil/opt.c | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-03-08 Thread Chad Fraleigh
On 2/14/2021 10:12 AM, Nuo Mi wrote: On Mon, Feb 15, 2021 at 2:08 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: 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 10064

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-02-14 Thread Chad Fraleigh
On 2/14/2021 10:16 AM, Andreas Rheinhardt wrote: Nuo Mi: On Mon, Feb 15, 2021 at 2:08 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: Nuo Mi: --- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 590146b

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-02-14 Thread Andreas Rheinhardt
Nuo Mi: > On Mon, Feb 15, 2021 at 2:08 AM Andreas Rheinhardt < > andreas.rheinha...@gmail.com> wrote: > >> 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 >

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-02-14 Thread Nuo Mi
On Mon, Feb 15, 2021 at 2:08 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > 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/libavu

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-02-14 Thread Andreas Rheinhardt
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

[FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-02-14 Thread 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 **i