Преглед изворни кода

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

Fixes CID 752028
Nick Mathewson пре 9 година
родитељ
комит
6e7cbfc465
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/common/compat_libevent.c

+ 3 - 0
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) {