Browse Source

Fix harmless warnings.

Con Kolivas 13 years ago
parent
commit
e4326e3ca2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      cgminer.c

+ 1 - 2
cgminer.c

@@ -3713,7 +3713,6 @@ bool queue_request(struct thr_info *thr, bool needed)
 {
 	int cq, cs, ts, tq, maxq = opt_queue + mining_threads;
 	struct workio_cmd *wc;
-	bool ret = true;
 
 	cq = current_queued();
 	cs = current_staged();
@@ -3762,7 +3761,7 @@ static struct work *hash_pop(const struct timespec *abstime)
 		work = staged_work;
 		HASH_DEL(staged_work, work);
 		work->pool->staged--;
-		if (HASH_COUNT(staged_work) < mining_threads)
+		if (HASH_COUNT(staged_work) < (unsigned int)mining_threads)
 			queue = true;
 	}
 	mutex_unlock(stgd_lock);