8000 Remove total_length_test to fix -Wunused-but-set-variable by JayXon · Pull Request #206 · google/zopfli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove total_length_test to fix -Wunused-but-set-variable #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
8000 Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/zopfli/squeeze.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ static void FollowPath(ZopfliBlockState* s,
size_t windowstart = instart > ZOPFLI_WINDOW_SIZE
? instart - ZOPFLI_WINDOW_SIZE : 0;

size_t total_length_test = 0;

if (instart == inend) return;

ZopfliResetHash(ZOPFLI_WINDOW_SIZE, h);
Expand All @@ -371,11 +369,9 @@ static void FollowPath(ZopfliBlockState* s,
assert(!(dummy_length != length && length > 2 && dummy_length > 2));
ZopfliVerifyLenDist(in, inend, pos, dist, length);
ZopfliStoreLitLenDist(length, dist, pos, store);
total_length_test += length;
} else {
length = 1;
ZopfliStoreLitLenDist(in[pos], 0, pos, store);
total_length_test++;
}


Expand Down
0