aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-13 20:57:01 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-13 20:57:01 +0200
commit60a9414cad23b6e8cc6b13e37675826ed05f7709 (patch)
tree38b193f0468dd57728fe991e9eaed8abf088deeb /archival
parent8dd29da2c667b6c9ae7381096320b9e31d3a50e2 (diff)
downloadbusybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.gz
busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.bz2
busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.zip
fix "variable 'foo' set but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/libarchive/bz/compress.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c
index 6f1c70a08..f93671742 100644
--- a/archival/libarchive/bz/compress.c
+++ b/archival/libarchive/bz/compress.c
@@ -251,7 +251,7 @@ 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, totc, bt, bc, iter;
253 int32_t nSelectors, alphaSize, minLen, maxLen, selCtr; 253 int32_t nSelectors, alphaSize, minLen, maxLen, selCtr;
254 int32_t nGroups, nBytes; 254 int32_t nGroups;
255 255
256 /* 256 /*
257 * uint8_t len[BZ_N_GROUPS][BZ_MAX_ALPHA_SIZE]; 257 * uint8_t len[BZ_N_GROUPS][BZ_MAX_ALPHA_SIZE];
@@ -512,7 +512,6 @@ void sendMTFValues(EState* s)
512 } 512 }
513 } 513 }
514 514
515 nBytes = s->numZ;
516 bsW(s, 16, inUse16); 515 bsW(s, 16, inUse16);
517 516
518 inUse16 <<= (sizeof(int)*8 - 16); /* move 15th bit into sign bit */ 517 inUse16 <<= (sizeof(int)*8 - 16); /* move 15th bit into sign bit */
@@ -528,7 +527,6 @@ void sendMTFValues(EState* s)
528 } 527 }
529 528
530 /*--- Now the selectors. ---*/ 529 /*--- Now the selectors. ---*/
531 nBytes = s->numZ;
532 bsW(s, 3, nGroups); 530 bsW(s, 3, nGroups);
533 bsW(s, 15, nSelectors); 531 bsW(s, 15, nSelectors);
534 for (i = 0; i < nSelectors; i++) { 532 for (i = 0; i < nSelectors; i++) {
@@ -538,8 +536,6 @@ void sendMTFValues(EState* s)
538 } 536 }
539 537
540 /*--- Now the coding tables. ---*/ 538 /*--- Now the coding tables. ---*/
541 nBytes = s->numZ;
542
543 for (t = 0; t < nGroups; t++) { 539 for (t = 0; t < nGroups; t++) {
544 int32_t curr = s->len[t][0]; 540 int32_t curr = s->len[t][0];
545 bsW(s, 5, curr); 541 bsW(s, 5, curr);
@@ -551,7 +547,6 @@ void sendMTFValues(EState* s)
551 } 547 }
552 548
553 /*--- And finally, the block data proper ---*/ 549 /*--- And finally, the block data proper ---*/
554 nBytes = s->numZ;
555 selCtr = 0; 550 selCtr = 0;
556 gs = 0; 551 gs = 0;
557 while (1) { 552 while (1) {