瀏覽代碼

make c612ddee compile with old libevents

Roger Dingledine 15 年之前
父節點
當前提交
50720a9a4f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/common/compat_libevent.c

+ 2 - 0
src/common/compat_libevent.c

@@ -162,6 +162,8 @@ void
 tor_libevent_initialize(tor_libevent_cfg *torcfg)
 {
   tor_assert(the_event_base == NULL);
+  /* some paths below don't use torcfg, so avoid unused variable warnings */
+  (void)torcfg;
 
 #ifdef __APPLE__
   if (MACOSX_KQUEUE_IS_BROKEN ||