From e9b6ff8f6a4d57931d1309609d87d50f551760a7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 7 Apr 2013 01:46:16 +1100 Subject: [PATCH] Fix warning with no curses built in. --- cgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 09570037..cd8e6c1b 100644 --- a/cgminer.c +++ b/cgminer.c @@ -2320,12 +2320,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) {