mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 20:11:38 -06:00
Fix variable shadowing warnings-as-errors when building with VS2015
This commit is contained in:
@@ -532,18 +532,18 @@ size_t LZ4MT_decompressDCtx(LZ4MT_DCtx * ctx, LZ4MT_RdWr_t * rdwr)
|
|||||||
|
|
||||||
/* multi threaded */
|
/* multi threaded */
|
||||||
for (t = 0; t < ctx->threads; t++) {
|
for (t = 0; t < ctx->threads; t++) {
|
||||||
cwork_t *w = &ctx->cwork[t];
|
cwork_t *wt = &ctx->cwork[t];
|
||||||
w->in.buf = 0;
|
wt->in.buf = 0;
|
||||||
w->in.size = 0;
|
wt->in.size = 0;
|
||||||
w->in.allocated = 0;
|
wt->in.allocated = 0;
|
||||||
pthread_create(&w->pthread, NULL, pt_decompress, w);
|
pthread_create(&wt->pthread, NULL, pt_decompress, wt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait for all workers */
|
/* wait for all workers */
|
||||||
for (t = 0; t < ctx->threads; t++) {
|
for (t = 0; t < ctx->threads; t++) {
|
||||||
cwork_t *w = &ctx->cwork[t];
|
cwork_t *wt = &ctx->cwork[t];
|
||||||
void *p;
|
void *p;
|
||||||
pthread_join(w->pthread, &p);
|
pthread_join(wt->pthread, &p);
|
||||||
if (p)
|
if (p)
|
||||||
retval_of_thread = p;
|
retval_of_thread = p;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -532,18 +532,18 @@ size_t LZ5MT_decompressDCtx(LZ5MT_DCtx * ctx, LZ5MT_RdWr_t * rdwr)
|
|||||||
|
|
||||||
/* multi threaded */
|
/* multi threaded */
|
||||||
for (t = 0; t < ctx->threads; t++) {
|
for (t = 0; t < ctx->threads; t++) {
|
||||||
cwork_t *w = &ctx->cwork[t];
|
cwork_t *wt = &ctx->cwork[t];
|
||||||
w->in.buf = 0;
|
wt->in.buf = 0;
|
||||||
w->in.size = 0;
|
wt->in.size = 0;
|
||||||
w->in.allocated = 0;
|
wt->in.allocated = 0;
|
||||||
pthread_create(&w->pthread, NULL, pt_decompress, w);
|
pthread_create(&wt->pthread, NULL, pt_decompress, wt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait for all workers */
|
/* wait for all workers */
|
||||||
for (t = 0; t < ctx->threads; t++) {
|
for (t = 0; t < ctx->threads; t++) {
|
||||||
cwork_t *w = &ctx->cwork[t];
|
cwork_t *wt = &ctx->cwork[t];
|
||||||
void *p;
|
void *p;
|
||||||
pthread_join(w->pthread, &p);
|
pthread_join(wt->pthread, &p);
|
||||||
if (p)
|
if (p)
|
||||||
retval_of_thread = p;
|
retval_of_thread = p;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -627,10 +627,10 @@ static size_t st_decompress(void *arg)
|
|||||||
goto error_clib;
|
goto error_clib;
|
||||||
|
|
||||||
if (zOut.pos) {
|
if (zOut.pos) {
|
||||||
ZSTDMT_Buffer w;
|
ZSTDMT_Buffer wb;
|
||||||
w.size = zOut.pos;
|
wb.size = zOut.pos;
|
||||||
w.buf = zOut.dst;
|
wb.buf = zOut.dst;
|
||||||
rv = ctx->fn_write(ctx->arg_write, &w);
|
rv = ctx->fn_write(ctx->arg_write, &wb);
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
result = mt_error(rv);
|
result = mt_error(rv);
|
||||||
goto error;
|
goto error;
|
||||||
@@ -810,15 +810,15 @@ size_t ZSTDMT_decompressDCtx(ZSTDMT_DCtx * ctx, ZSTDMT_RdWr_t * rdwr)
|
|||||||
|
|
||||||
/* multi threaded */
|
/* multi threaded */
|
||||||
for (t = 0; t < ctx->threads; t++) {
|
for (t = 0; t < ctx->threads; t++) {
|
||||||
cwork_t *w = &ctx->cwork[t];
|
cwork_t *wt = &ctx->cwork[t];
|
||||||
pthread_create(&w->pthread, NULL, pt_decompress, w);
|
pthread_create(&wt->pthread, NULL, pt_decompress, wt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait for all workers */
|
/* wait for all workers */
|
||||||
for (t = 0; t < ctx->threads; t++) {
|
for (t = 0; t < ctx->threads; t++) {
|
||||||
cwork_t *w = &ctx->cwork[t];
|
cwork_t *wt = &ctx->cwork[t];
|
||||||
void *p;
|
void *p;
|
||||||
pthread_join(w->pthread, &p);
|
pthread_join(wt->pthread, &p);
|
||||||
if (p)
|
if (p)
|
||||||
retval_of_thread = p;
|
retval_of_thread = p;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user