summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-11-25 14:58:16 +0100
committerPatrick Steinhardt <ps@pks.im>2016-12-12 09:16:33 +0100
commitab0cc5a0598ecbfa2cffe7248deb5256993eb86e (patch)
treec26638026b2010bc355f4be49068ab151ab9565a
parent8339c66068c8e964f8bf1eca10745db730bf62fa (diff)
downloadlibgit2-ab0cc5a0598ecbfa2cffe7248deb5256993eb86e.tar.gz
clar: mark `cl_git_thread_check()` as inline
The function `cl_git_thread_check()` is defined as static. As the function is defined in a header file which is included by our tests, this can result in warnings for every test file where `cl_git_thread_check` is never used. Fix the issue by marking it as inline instead.
-rw-r--r--tests/clar_libgit2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h
index 663d1362a..fc08bbf1f 100644
--- a/tests/clar_libgit2.h
+++ b/tests/clar_libgit2.h
@@ -79,7 +79,7 @@ typedef struct {
} \
} while (0)
-static void cl_git_thread_check(void *data)
+GIT_INLINE(void) cl_git_thread_check(void *data)
{
cl_git_thread_err *threaderr = (cl_git_thread_err *)data;
if (threaderr->error != 0)