Avoid a "constant variable guards dead code" warning from coverity

Fixes CID 752028
This commit is contained in:
Nick Mathewson 2014-09-26 09:40:30 -04:00
parent 9fd6fbec28
commit 6e7cbfc465

View File

@ -210,6 +210,9 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg)
} else {
using_iocp_bufferevents = 0;
}
#elif defined(__COVERITY__)
/* Avoid a 'dead code' warning below. */
using_threads = ! torcfg->disable_iocp;
#endif
if (!using_threads) {