From f4d1592c2f18f7bb6bbf7eba417708892ba19acd Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Fri, 21 Apr 2017 07:09:59 +0000 Subject: [PATCH 1/2] global: fix typo in `git_libgit2_init` description --- include/git2/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/global.h b/include/git2/global.h index ce5bdf444..2a87e10c6 100644 --- a/include/git2/global.h +++ b/include/git2/global.h @@ -14,7 +14,7 @@ GIT_BEGIN_DECL /** * Init the global state * - * This function must the called before any other libgit2 function in + * This function must be called before any other libgit2 function in * order to set up global state and threading. * * This function may be called multiple times - it will return the number From 13c275aba50346b56f9a6787a9e3f3d73ec0c9a9 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Fri, 21 Apr 2017 07:49:08 +0000 Subject: [PATCH 2/2] 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. --- tests/threads/diff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/threads/diff.c b/tests/threads/diff.c index 90d35b15e..256040265 100644 --- a/tests/threads/diff.c +++ b/tests/threads/diff.c @@ -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