← Commit list

83dd4ff69

Denys Vlasenko
Denys Vlasenko
2018-02-03
SUCCESS Duration: 145s

Subject

bzip2: delete write-only fave[] array

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libarchive/bz/compress.c+0 -5
@@ -281,7 +281,6 @@ void sendMTFValues(EState* s)
#define len_pack sendMTFValues__len_pack
unsigned /*uint16_t*/ cost[BZ_N_GROUPS];
- int32_t fave[BZ_N_GROUPS];
uint16_t* mtfv = s->mtfv;
@@ -349,9 +348,6 @@ void sendMTFValues(EState* s)
* Iterate up to BZ_N_ITERS times to improve the tables.
*/
for (iter = 0; iter < BZ_N_ITERS; iter++) {
- for (t = 0; t < nGroups; t++)
- fave[t] = 0;
-
for (t = 0; t < nGroups; t++) {
unsigned v;
for (v = 0; v < alphaSize; v++)
@@ -440,7 +436,6 @@ void sendMTFValues(EState* s)
bt = t;
}
}
- fave[bt]++;
s->selector[nSelectors] = bt;
nSelectors++;