mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-18 19:14:55 +00:00
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.
This commit is contained in:
parent
f4d1592c2f
commit
13c275aba5
@ -19,7 +19,9 @@ static git_repository *_repo;
|
||||
static git_tree *_a, *_b;
|
||||
static git_atomic _counts[4];
|
||||
static int _check_counts;
|
||||
#ifdef GIT_WIN32
|
||||
static int _retries;
|
||||
#endif
|
||||
|
||||
#define THREADS 20
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user