diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-26 09:40:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-26 09:40:30 -0400 |
commit | 6e7cbfc465f9cbb2bd24ebeb019f542b2f4ccb2e (patch) | |
tree | 5954ee4df865e3e3fa4316d680776cd11f4452bb | |
parent | 9fd6fbec280ea07326f0d4a0e9289609fafd7ef1 (diff) | |
download | tor-6e7cbfc465f9cbb2bd24ebeb019f542b2f4ccb2e.tar.gz tor-6e7cbfc465f9cbb2bd24ebeb019f542b2f4ccb2e.zip |
Avoid a "constant variable guards dead code" warning from coverity
Fixes CID 752028
-rw-r--r-- | src/common/compat_libevent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index 74b54bb855..7e6f304c6b 100644 --- a/src/common/compat_libevent.c +++ b/src/common/compat_libevent.c @@ -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) { |