Skip to content

Commit 290ef52

Browse files
committed
Fix variable set but not used
Fixes: ../../../src/share/grabbag/seektable.c: In function 'grabbag__seektable_convert_specification_to_template': ../../../src/share/grabbag/seektable.c:32:18: warning: variable 'i' set but not used [-Wunused-but-set-variable=] 32 | uint32_t i; | ^ Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
1 parent afb801b commit 290ef52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/share/grabbag/seektable.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
FLAC__bool grabbag__seektable_convert_specification_to_template(const char *spec, FLAC__bool only_explicit_placeholders, FLAC__uint64 total_samples_to_encode, uint32_t sample_rate, FLAC__StreamMetadata *seektable_template, FLAC__bool *spec_has_real_points)
3131
{
32-
uint32_t i;
3332
const char *pt;
3433

3534
FLAC__ASSERT(0 != spec);
@@ -39,7 +38,7 @@ FLAC__bool grabbag__seektable_convert_specification_to_template(const char *spec
3938
if(0 != spec_has_real_points)
4039
*spec_has_real_points = false;
4140

42-
for(pt = spec, i = 0; pt && *pt; i++) {
41+
for(pt = spec; pt && *pt; ) {
4342
const char *q = strchr(pt, ';');
4443
FLAC__ASSERT(0 != q);
4544

0 commit comments

Comments
 (0)