Skip to content

Commit 90c77e1

Browse files
committed
zopfli: Remove total_length_test to fix -Wunused-but-set-variable
1 parent eb9899a commit 90c77e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/zopfli/squeeze.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ static void FollowPath(ZopfliBlockState* s,
338338
size_t windowstart = instart > ZOPFLI_WINDOW_SIZE
339339
? instart - ZOPFLI_WINDOW_SIZE : 0;
340340

341-
size_t total_length_test = 0;
342-
343341
if (instart == inend) return;
344342

345343
ZopfliResetHash(ZOPFLI_WINDOW_SIZE, h);
@@ -366,11 +364,9 @@ static void FollowPath(ZopfliBlockState* s,
366364
assert(!(dummy_length != length && length > 2 && dummy_length > 2));
367365
ZopfliVerifyLenDist(in, inend, pos, dist, length);
368366
ZopfliStoreLitLenDist(length, dist, pos, store);
369-
total_length_test += length;
370367
} else {
371368
length = 1;
372369
ZopfliStoreLitLenDist(in[pos], 0, pos, store);
373-
total_length_test++;
374370
}
375371

376372

0 commit comments

Comments
 (0)