Explorar o código

Get rid of an unused parameter warning on win

This is a backport of bed79c47f4ec0ee72b19e2b81c54131d516d07ef which
accidentally only went into master
Sebastian Hahn %!s(int64=14) %!d(string=hai) anos
pai
achega
3dc2a1c62c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/common/util.c

+ 2 - 0
src/common/util.c

@@ -1698,6 +1698,8 @@ check_private_dir(const char *dirname, cpd_check_t check,
   struct passwd *pw = NULL;
   uid_t running_uid;
   gid_t running_gid;
+#else
+  (void)effective_user;
 #endif
 
   tor_assert(dirname);