diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-01-08 20:13:37 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-01-12 15:41:39 +0100 |
commit | b239eefeb524460f386252189f873e3e82912e80 (patch) | |
tree | 643960f068c89e51fc6d1523d86c6d77479adbc1 | |
parent | 7a5d6690fc54ef354b30cb2236b7127928356f01 (diff) | |
download | ffmpeg-b239eefeb524460f386252189f873e3e82912e80.tar.gz |
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@outlook.com>
-rw-r--r-- | libavcodec/sga.c | 4 |
1 files 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) |