Commit d86f7b774177ac15cca6720510f733540b406974

Con Kolivas 2013-04-07T01:46:16

Fix warning with no curses built in.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/cgminer.c b/cgminer.c
index 821d164..2c49aa3 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2299,12 +2299,14 @@ static void enable_pool(struct pool *pool)
 	}
 }
 
+#ifdef HAVE_CURSES
 static void disable_pool(struct pool *pool)
 {
 	if (pool->enabled == POOL_ENABLED)
 		enabled_pools--;
 	pool->enabled = POOL_DISABLED;
 }
+#endif
 
 static void reject_pool(struct pool *pool)
 {