Skip to content

Commit 13c275a

Browse files
committed
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.
1 parent f4d1592 commit 13c275a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/threads/diff.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ static git_repository *_repo;
1919
static git_tree *_a, *_b;
2020
static git_atomic _counts[4];
2121
static int _check_counts;
22+
#ifdef GIT_WIN32
2223
static int _retries;
24+
#endif
2325

2426
#define THREADS 20
2527

0 commit comments

Comments
 (0)