Ignore reduntant-with-build options --disable-gpu, --no-adl, and --no-restart
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
diff --git a/cgminer.c b/cgminer.c
index c336f8b..85a6f5c 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -100,9 +100,9 @@ static const bool opt_time = true;
#ifdef HAVE_OPENCL
int opt_dynamic_interval = 7;
+#endif
bool opt_restart = true;
static bool opt_nogpu;
-#endif
struct list_head scan_devices;
int nDevs;
@@ -663,11 +663,14 @@ static struct opt_table opt_config_table[] = {
OPT_WITH_ARG("--device|-d",
set_devices, NULL, NULL,
"Select device to use, (Use repeat -d for multiple devices, default: all)"),
-#ifdef HAVE_OPENCL
OPT_WITHOUT_ARG("--disable-gpu|-G",
opt_set_bool, &opt_nogpu,
- "Disable GPU mining even if suitable devices exist"),
+#ifdef HAVE_OPENCL
+ "Disable GPU mining even if suitable devices exist"
+#else
+ opt_hidden
#endif
+ ),
#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE) || defined(USE_ICARUS))
OPT_WITHOUT_ARG("--enable-cpu|-C",
opt_set_bool, &opt_usecpu,
@@ -736,19 +739,25 @@ static struct opt_table opt_config_table[] = {
OPT_WITHOUT_ARG("--net-delay",
opt_set_bool, &opt_delaynet,
"Impose small delays in networking to not overload slow routers"),
-#ifdef HAVE_ADL
OPT_WITHOUT_ARG("--no-adl",
opt_set_bool, &opt_noadl,
- "Disable the ATI display library used for monitoring and setting GPU parameters"),
+#ifdef HAVE_ADL
+ "Disable the ATI display library used for monitoring and setting GPU parameters"
+#else
+ opt_hidden
#endif
+ ),
OPT_WITHOUT_ARG("--no-longpoll",
opt_set_invbool, &want_longpoll,
"Disable X-Long-Polling support"),
-#ifdef HAVE_OPENCL
OPT_WITHOUT_ARG("--no-restart",
opt_set_invbool, &opt_restart,
- "Do not attempt to restart GPUs that hang"),
+#ifdef HAVE_OPENCL
+ "Do not attempt to restart GPUs that hang"
+#else
+ opt_hidden
#endif
+ ),
OPT_WITH_ARG("--pass|-p",
set_pass, NULL, NULL,
"Password for bitcoin JSON-RPC server"),