[FFmpeg-cvslog] avcodec/sga: Silence -Wunused-but-set-variable warnings
Andreas Rheinhardt
git at videolan.org
Sun Jan 12 17:00:03 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Jan 8 20:13:37 2025 +0100| [b239eefeb524460f386252189f873e3e82912e80] | committer: Andreas Rheinhardt
avcodec/sga: Silence -Wunused-but-set-variable warnings
The variables are used, but only inside an av_assert1().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b239eefeb524460f386252189f873e3e82912e80
---
libavcodec/sga.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/sga.c b/libavcodec/sga.c
index c828f7147f..5d913a28b4 100644
--- a/libavcodec/sga.c
+++ b/libavcodec/sga.c
@@ -254,7 +254,7 @@ static int decode_palmapdata(AVCodecContext *avctx)
const int bits = (s->nb_pal + 1) / 2;
GetByteContext *gb = &s->gb;
GetBitContext pm;
- int ret;
+ av_unused int ret;
bytestream2_seek(gb, s->palmapdata_offset, SEEK_SET);
if (bytestream2_get_bytes_left(gb) < s->palmapdata_size)
@@ -279,7 +279,7 @@ static int decode_tiledata(AVCodecContext *avctx)
SGAVideoContext *s = avctx->priv_data;
GetByteContext *gb = &s->gb;
GetBitContext tm;
- int ret;
+ av_unused int ret;
bytestream2_seek(gb, s->tiledata_offset, SEEK_SET);
if (bytestream2_get_bytes_left(gb) < s->tiledata_size)
More information about the ffmpeg-cvslog
mailing list