Commit 6637b1ca7d8929e8e8192c938da7abdf373cb17c

Kano 2014-03-12T17:48:55

drillbit - remove warnings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-drillbit.c b/driver-drillbit.c
index 03c5a7b..6efc1d9 100644
--- a/driver-drillbit.c
+++ b/driver-drillbit.c
@@ -483,7 +483,7 @@ static void drillbit_get_statline_before(char *buf, size_t bufsiz, struct cgpu_i
 }
 
 
-static bool drillbit_parse_options(struct cgpu_info *drillbit)
+static bool drillbit_parse_options(__maybe_unused struct cgpu_info *drillbit)
 {
 	/* Read configuration options (currently global not per-ASIC or per-board) */
 	if (settings != NULL)
@@ -681,7 +681,6 @@ static void drillbit_check_auto(struct thr_info *thr, struct drillbit_chip_info 
 	AutoTuneRequest request;
 	char buf[SZ_SERIALISED_AUTOTUNEREQUEST+1];
 	int amount;
-	float ratio;
 	bool tune_up, tune_down;
 
 	/*