Fixes a -Wunused-but-set-variable from Clang 15.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -393,7 +393,7 @@ static void guess_mv(ERContext *s) · 392 unmodified lines | ||
| 393 | 393 | const ptrdiff_t mb_stride = s->mb_stride; |
| 394 | 394 | const int mb_width = s->mb_width; |
| 395 | 395 | int mb_height = s->mb_height; |
| 396 | − int i, depth, num_avail; | |
| 396 | + int i, num_avail; | |
| 397 | 397 | int mb_x, mb_y; |
| 398 | 398 | ptrdiff_t mot_step, mot_stride; |
| 399 | 399 | int blocklist_length, next_blocklist_length; |
| @@ -469,7 +469,7 @@ static void guess_mv(ERContext *s) · 69 unmodified lines | ||
| 469 | 469 | } |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | − for (depth = 0; ; depth++) { | |
| 472 | + for (;;) { | |
| 473 | 473 | int changed, pass, none_left; |
| 474 | 474 | int blocklist_index; |
| 475 | 475 | |