avoid warnings about set but unused variables

This commit is contained in:
Moritz Bunkus 2023-02-08 22:46:12 +01:00
parent 322510a661
commit fd9f806ad4
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 2 additions and 4 deletions

View File

@ -2160,7 +2160,7 @@ int avi_parse_index_from_file(avi_t *AVI, const char *filename)
int64_t pos, len, f_pos, tot_chunks[AVI_MAX_TRACKS];
int key=0, type;
int vid_chunks=0, aud_chunks[AVI_MAX_TRACKS];
long line_count=0;
/* long line_count=0; */
char *c, d;
int i,j;
@ -2206,7 +2206,7 @@ int avi_parse_index_from_file(avi_t *AVI, const char *filename)
} else
continue;
line_count++;
/* line_count++; */
}
AVI->video_frames = vid_chunks;

View File

@ -1066,13 +1066,11 @@ check_append_mapping() {
// Find consecutive mappings.
auto trav_amap = amap;
int path_length = 2;
do {
for (cmp_amap = g_append_mapping.begin(); cmp_amap != amap_end; ++cmp_amap)
if ( (trav_amap->src_file_id == cmp_amap->dst_file_id)
&& (trav_amap->src_track_id == cmp_amap->dst_track_id)) {
trav_amap = cmp_amap;
path_length++;
break;
}
} while (cmp_amap != amap_end);