From 4280aca375f60981d70826091f1ece82e7cf56c5 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Sat, 31 Dec 2011 19:53:05 +0200 Subject: Set hashes_done variable to 0 in order not to confuse valgrind This variable is set by SPU code, but valgrind can't see it and complains. --- cpu-miner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu-miner.c b/cpu-miner.c index 8ab0cf9..160c1c3 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -574,6 +574,7 @@ static void *miner_thread(void *userdata) memcpy(argp->data, work.data, sizeof(work.data)); memcpy(argp->target, work.target, sizeof(work.target)); argp->max_nonce = max_nonce; + argp->hashes_done = 0; work_restart[thr_id].restart = 0; spe_context_run(mythr->spe_context, &entry, 0, argp, (void *)&work_restart[thr_id].restart, &stop_info); -- cgit v1.2.3-18-g5258