diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:43:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:43:33 +0100 |
commit | 9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (patch) | |
tree | a950fa73740d345e11ba1ce90f4fc39ee12516e6 /archival/libarchive/bz | |
parent | 1a7256ac38284caffd2a0de2250364369059be69 (diff) | |
download | busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.gz busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.bz2 busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.zip |
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/bz')
-rw-r--r-- | archival/libarchive/bz/compress.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index a7dd72d9e..23de9d3f5 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c | |||
@@ -249,7 +249,7 @@ void generateMTFValues(EState* s) | |||
249 | static NOINLINE | 249 | static NOINLINE |
250 | void sendMTFValues(EState* s) | 250 | void sendMTFValues(EState* s) |
251 | { | 251 | { |
252 | int32_t v, t, i, j, gs, ge, totc, bt, bc, iter; | 252 | int32_t v, t, i, j, gs, ge, bt, bc, iter; |
253 | int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; | 253 | int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; |
254 | int32_t nGroups; | 254 | int32_t nGroups; |
255 | 255 | ||
@@ -345,7 +345,6 @@ void sendMTFValues(EState* s) | |||
345 | } | 345 | } |
346 | #endif | 346 | #endif |
347 | nSelectors = 0; | 347 | nSelectors = 0; |
348 | totc = 0; | ||
349 | gs = 0; | 348 | gs = 0; |
350 | while (1) { | 349 | while (1) { |
351 | /*--- Set group start & end marks. --*/ | 350 | /*--- Set group start & end marks. --*/ |
@@ -411,7 +410,6 @@ void sendMTFValues(EState* s) | |||
411 | bt = t; | 410 | bt = t; |
412 | } | 411 | } |
413 | } | 412 | } |
414 | totc += bc; | ||
415 | fave[bt]++; | 413 | fave[bt]++; |
416 | s->selector[nSelectors] = bt; | 414 | s->selector[nSelectors] = bt; |
417 | nSelectors++; | 415 | nSelectors++; |