[tor-commits] [tor/master] Fix windows compilation warning in test_config.c

nickm at torproject.org nickm at torproject.org
Wed May 29 16:09:17 UTC 2013


commit 4d7ac69f05ea80e0a79efe2af64dfe66d788e8df
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed May 29 12:08:28 2013 -0400

    Fix windows compilation warning in test_config.c
    
    bugfix on 78cc5833a1da038331186ddf07f4add7f8f1094b; bug not in any
    released Tor.
    
    Spotted by weasel using Jenkins.
---
 src/test/test_config.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_config.c b/src/test/test_config.c
index 8316d0e..2a23e33 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -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)



More information about the tor-commits mailing list