fix warning

This commit is contained in:
arvidn 2015-08-22 01:22:04 +02:00
parent a42f9e0c63
commit 3018546b37
1 changed files with 4 additions and 0 deletions

View File

@ -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<std::string> 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;