Browse Source

Silence warnings about (never really) uninitalised variables

Luke Dashjr 12 years ago
parent
commit
86517d86df
2 changed files with 2 additions and 2 deletions
  1. 1 1
      driver-icarus.c
  2. 1 1
      util.c

+ 1 - 1
driver-icarus.c

@@ -747,7 +747,7 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 {
 	struct cgpu_info *icarus;
 	int fd;
-	int ret;
+	int uninitialised_var(ret);
 
 	struct ICARUS_INFO *info;
 

+ 1 - 1
util.c

@@ -1274,7 +1274,7 @@ char *recv_line(struct pool *pool)
 	if (!strstr(pool->sockbuf, "\n")) {
 		enum recv_ret ret = RECV_OK;
 		struct timeval rstart, now;
-		int socket_recv_errno;
+		int uninitialised_var(socket_recv_errno);
 
 		gettimeofday(&rstart, NULL);
 		if (!socket_full(pool, DEFAULT_SOCKWAIT)) {