From 3018546b3769a0769c280775446faff60072ce8e Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 22 Aug 2015 01:22:04 +0200 Subject: [PATCH] fix warning --- examples/client_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 9a2058710..16e747604 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1305,7 +1305,9 @@ int main(int argc, char* argv[]) settings.set_int(settings_pack::choking_algorithm, settings_pack::rate_based_choker); int refresh_delay = 500; +#ifndef TORRENT_DISABLE_DHT bool start_dht = true; +#endif bool rate_limit_locals = false; std::deque events; @@ -1402,7 +1404,9 @@ int main(int argc, char* argv[]) case 't': poll_interval = atoi(arg); break; case 'F': refresh_delay = atoi(arg); break; case 'H': +#ifndef TORRENT_DISABLE_DHT start_dht = false; +#endif settings.set_bool(settings_pack::enable_dht, false); --i; break;