Commit 13c275ab by Patrick Steinhardt

tests: threads::diff: fix warning for unused variable

The threads::diff test suite has a static variable `_retries`, which is
used on Windows platforms only. As it is unused on other systems, the
compiler throws a warning there. Fix the warning by wrapping the
declaration in an ifdef.
parent f4d1592c
...@@ -19,7 +19,9 @@ static git_repository *_repo; ...@@ -19,7 +19,9 @@ static git_repository *_repo;
static git_tree *_a, *_b; static git_tree *_a, *_b;
static git_atomic _counts[4]; static git_atomic _counts[4];
static int _check_counts; static int _check_counts;
#ifdef GIT_WIN32
static int _retries; static int _retries;
#endif
#define THREADS 20 #define THREADS 20
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment