]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix windows compilation warning in test_config.c
authorNick Mathewson <nickm@torproject.org>
Wed, 29 May 2013 16:08:28 +0000 (12:08 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 29 May 2013 16:08:28 +0000 (12:08 -0400)
bugfix on 78cc5833a1da038331186ddf07f4add7f8f1094b; bug not in any
released Tor.

Spotted by weasel using Jenkins.

src/test/test_config.c

index 8316d0eda49163a56802039d3514188ae85e8ef2..2a23e33a869726cc9be44bdfca768fa3db4b192a 100644 (file)
@@ -196,7 +196,9 @@ test_config_check_or_create_data_subdir(void *arg)
   const char *subpath = get_datadir_fname(subdir);
   struct stat st;
   int r;
+#if !defined (_WIN32) || defined (WINCE)
   unsigned group_permission;
+#endif
   (void)arg;
 
 #if defined (_WIN32) && !defined (WINCE)