Skip to content

Commit b239eef

Browse files
committed
avcodec/sga: Silence -Wunused-but-set-variable warnings
The variables are used, but only inside an av_assert1(). Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent 7a5d669 commit b239eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavcodec/sga.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static int decode_palmapdata(AVCodecContext *avctx)
254254
const int bits = (s->nb_pal + 1) / 2;
255255
GetByteContext *gb = &s->gb;
256256
GetBitContext pm;
257-
int ret;
257+
av_unused int ret;
258258

259259
bytestream2_seek(gb, s->palmapdata_offset, SEEK_SET);
260260
if (bytestream2_get_bytes_left(gb) < s->palmapdata_size)
@@ -279,7 +279,7 @@ static int decode_tiledata(AVCodecContext *avctx)
279279
SGAVideoContext *s = avctx->priv_data;
280280
GetByteContext *gb = &s->gb;
281281
GetBitContext tm;
282-
int ret;
282+
av_unused int ret;
283283

284284
bytestream2_seek(gb, s->tiledata_offset, SEEK_SET);
285285
if (bytestream2_get_bytes_left(gb) < s->tiledata_size)

0 commit comments

Comments
 (0)