diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-11-25 14:58:16 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2016-12-12 09:16:33 +0100 |
commit | ab0cc5a0598ecbfa2cffe7248deb5256993eb86e (patch) | |
tree | c26638026b2010bc355f4be49068ab151ab9565a | |
parent | 8339c66068c8e964f8bf1eca10745db730bf62fa (diff) | |
download | libgit2-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.h | 2 |
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) |