aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-26 09:40:30 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-26 09:40:30 -0400
commit6e7cbfc465f9cbb2bd24ebeb019f542b2f4ccb2e (patch)
tree5954ee4df865e3e3fa4316d680776cd11f4452bb
parent9fd6fbec280ea07326f0d4a0e9289609fafd7ef1 (diff)
downloadtor-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.c3
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) {