mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Avoid a "constant variable guards dead code" warning from coverity
Fixes CID 752028
This commit is contained in:
parent
9fd6fbec28
commit
6e7cbfc465
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user