mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 07:14:56 -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 */
|
||||
for (t = 0; t < ctx->threads; t++) {
|
||||
cwork_t *w = &ctx->cwork[t];
|
||||
w->in.buf = 0;
|
||||
w->in.size = 0;
|
||||
w->in.allocated = 0;
|
||||
pthread_create(&w->pthread, NULL, pt_decompress, w);
|
||||
cwork_t *wt = &ctx->cwork[t];
|
||||
wt->in.buf = 0;
|
||||
wt->in.size = 0;
|
||||
wt->in.allocated = 0;
|
||||
pthread_create(&wt->pthread, NULL, pt_decompress, wt);
|
||||
}
|
||||
|
||||
/* wait for all workers */
|
||||
for (t = 0; t < ctx->threads; t++) {
|
||||
cwork_t *w = &ctx->cwork[t];
|
||||
cwork_t *wt = &ctx->cwork[t];
|
||||
void *p;
|
||||
pthread_join(w->pthread, &p);
|
||||
pthread_join(wt->pthread, &p);
|
||||
if (p)
|
||||
retval_of_thread = p;
|
||||
}
|
||||
|
||||
@@ -532,18 +532,18 @@ size_t LZ5MT_decompressDCtx(LZ5MT_DCtx * ctx, LZ5MT_RdWr_t * rdwr)
|
||||
|
||||
/* multi threaded */
|
||||
for (t = 0; t < ctx->threads; t++) {
|
||||
cwork_t *w = &ctx->cwork[t];
|
||||
w->in.buf = 0;
|
||||
w->in.size = 0;
|
||||
w->in.allocated = 0;
|
||||
pthread_create(&w->pthread, NULL, pt_decompress, w);
|
||||
cwork_t *wt = &ctx->cwork[t];
|
||||
wt->in.buf = 0;
|
||||
wt->in.size = 0;
|
||||
wt->in.allocated = 0;
|
||||
pthread_create(&wt->pthread, NULL, pt_decompress, wt);
|
||||
}
|
||||
|
||||
/* wait for all workers */
|
||||
for (t = 0; t < ctx->threads; t++) {
|
||||
cwork_t *w = &ctx->cwork[t];
|
||||
cwork_t *wt = &ctx->cwork[t];
|
||||
void *p;
|
||||
pthread_join(w->pthread, &p);
|
||||
pthread_join(wt->pthread, &p);
|
||||
if (p)
|
||||
retval_of_thread = p;
|
||||
}
|
||||
|
||||
@@ -627,10 +627,10 @@ static size_t st_decompress(void *arg)
|
||||
goto error_clib;
|
||||
|
||||
if (zOut.pos) {
|
||||
ZSTDMT_Buffer w;
|
||||
w.size = zOut.pos;
|
||||
w.buf = zOut.dst;
|
||||
rv = ctx->fn_write(ctx->arg_write, &w);
|
||||
ZSTDMT_Buffer wb;
|
||||
wb.size = zOut.pos;
|
||||
wb.buf = zOut.dst;
|
||||
rv = ctx->fn_write(ctx->arg_write, &wb);
|
||||
if (rv != 0) {
|
||||
result = mt_error(rv);
|
||||
goto error;
|
||||
@@ -810,15 +810,15 @@ size_t ZSTDMT_decompressDCtx(ZSTDMT_DCtx * ctx, ZSTDMT_RdWr_t * rdwr)
|
||||
|
||||
/* multi threaded */
|
||||
for (t = 0; t < ctx->threads; t++) {
|
||||
cwork_t *w = &ctx->cwork[t];
|
||||
pthread_create(&w->pthread, NULL, pt_decompress, w);
|
||||
cwork_t *wt = &ctx->cwork[t];
|
||||
pthread_create(&wt->pthread, NULL, pt_decompress, wt);
|
||||
}
|
||||
|
||||
/* wait for all workers */
|
||||
for (t = 0; t < ctx->threads; t++) {
|
||||
cwork_t *w = &ctx->cwork[t];
|
||||
cwork_t *wt = &ctx->cwork[t];
|
||||
void *p;
|
||||
pthread_join(w->pthread, &p);
|
||||
pthread_join(wt->pthread, &p);
|
||||
if (p)
|
||||
retval_of_thread = p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user