Message ID | GV1P250MB07375F2E3547BE202832EA8F8FFE2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | bb3c50b46d50b8bf4f45d7ae8f24607aaf23acea |
Headers | show |
Series | [FFmpeg-devel] avcodec/tiff: Suppress unused variable warnings | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> > --- > libavcodec/tiff.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c > index 846d817cdc..fd4116aec4 100644 > --- a/libavcodec/tiff.c > +++ b/libavcodec/tiff.c > @@ -422,7 +422,7 @@ static void av_always_inline horizontal_fill(TiffContext *s, > uint8_t shift = is_dng ? 0 : 16 - bpp; > GetBitContext gb; > > - int ret = init_get_bits8(&gb, src, width); > + av_unused int ret = init_get_bits8(&gb, src, width); > av_assert1(ret >= 0); > for (int i = 0; i < s->width; i++) { > dst16[i] = get_bits(&gb, bpp) << shift; > @@ -457,7 +457,7 @@ static void unpack_gray(TiffContext *s, AVFrame *p, > GetBitContext gb; > uint16_t *dst = (uint16_t *)(p->data[0] + lnum * p->linesize[0]); > > - int ret = init_get_bits8(&gb, src, width); > + av_unused int ret = init_get_bits8(&gb, src, width); > av_assert1(ret >= 0); > > for (int i = 0; i < s->width; i++) { Will apply. - Andreas
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 846d817cdc..fd4116aec4 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -422,7 +422,7 @@ static void av_always_inline horizontal_fill(TiffContext *s, uint8_t shift = is_dng ? 0 : 16 - bpp; GetBitContext gb; - int ret = init_get_bits8(&gb, src, width); + av_unused int ret = init_get_bits8(&gb, src, width); av_assert1(ret >= 0); for (int i = 0; i < s->width; i++) { dst16[i] = get_bits(&gb, bpp) << shift; @@ -457,7 +457,7 @@ static void unpack_gray(TiffContext *s, AVFrame *p, GetBitContext gb; uint16_t *dst = (uint16_t *)(p->data[0] + lnum * p->linesize[0]); - int ret = init_get_bits8(&gb, src, width); + av_unused int ret = init_get_bits8(&gb, src, width); av_assert1(ret >= 0); for (int i = 0; i < s->width; i++) {
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)