Browse Source

Bugfix: Silence harmless warnings

Luke Dashjr 11 years ago
parent
commit
c79a5a9cd8
2 changed files with 2 additions and 1 deletions
  1. 0 1
      driver-gridseed.c
  2. 2 0
      miner.c

+ 0 - 1
driver-gridseed.c

@@ -211,7 +211,6 @@ static
 int64_t gridseed_scanhash(struct thr_info *thr, struct work *work, int64_t __maybe_unused max_nonce)
 {
 	struct cgpu_info *device = thr->cgpu;
-	struct gc3355_info *info = device->device_data;
 
 	unsigned char buf[GC3355_READ_SIZE];
 	int read = 0;

+ 2 - 0
miner.c

@@ -6445,6 +6445,7 @@ static bool block_exists(char *hexstr)
 	return false;
 }
 
+#if 0
 /* Tests if this work is from a block that has been seen before */
 static inline bool from_existing_block(struct work *work)
 {
@@ -6455,6 +6456,7 @@ static inline bool from_existing_block(struct work *work)
 	ret = block_exists(hexstr);
 	return ret;
 }
+#endif
 
 static int block_sort(struct block *blocka, struct block *blockb)
 {