Commit 28f515e91d78c8e378ee190894e76e21aaa1ba72

Kano 2013-03-15T06:22:22

nDevs required for -n with usb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cgminer.c b/cgminer.c
index 39bb11a..7c1ff6a 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -92,9 +92,11 @@ int opt_bench_algo = -1;
 static const bool opt_time = true;
 unsigned long long global_hashrate;
 
+#if defined(HAVE_OPENCL) || defined(USE_USBUTILS)
+int nDevs;
+#endif
 #ifdef HAVE_OPENCL
 int opt_dynamic_interval = 7;
-int nDevs;
 int opt_g_threads = 2;
 int gpu_threads;
 #ifdef USE_SCRYPT