History

avcodec/sga: Silence -Wunused-but-set-variable warnings

The variables are used, but only inside an av_assert1().

Andreas Rheinhardt committed 1 year ago

Commit b239eef1 parent 7a5d6691 file · +2 −2Browse files

Unified · Split

libavcodec/sga.c+2−2
@@ -254,7 +254,7 @@ static int decode_palmapdata(AVCodecContext *avctx) · 253 unmodified lines
254 const int bits = (s->nb_pal + 1) / 2;254 const int bits = (s->nb_pal + 1) / 2;
255 GetByteContext *gb = &s->gb;255 GetByteContext *gb = &s->gb;
256 GetBitContext pm;256 GetBitContext pm;
257 int ret;257 av_unused int ret;
258 258
259 bytestream2_seek(gb, s->palmapdata_offset, SEEK_SET);259 bytestream2_seek(gb, s->palmapdata_offset, SEEK_SET);
260 if (bytestream2_get_bytes_left(gb) < s->palmapdata_size)260 if (bytestream2_get_bytes_left(gb) < s->palmapdata_size)
@@ -279,7 +279,7 @@ static int decode_tiledata(AVCodecContext *avctx) · 18 unmodified lines
279 SGAVideoContext *s = avctx->priv_data;279 SGAVideoContext *s = avctx->priv_data;
280 GetByteContext *gb = &s->gb;280 GetByteContext *gb = &s->gb;
281 GetBitContext tm;281 GetBitContext tm;
282 int ret;282 av_unused int ret;
283 283
284 bytestream2_seek(gb, s->tiledata_offset, SEEK_SET);284 bytestream2_seek(gb, s->tiledata_offset, SEEK_SET);
285 if (bytestream2_get_bytes_left(gb) < s->tiledata_size)285 if (bytestream2_get_bytes_left(gb) < s->tiledata_size)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t