Skip to content

Commit ab0cc5a

Browse files
committed
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.
1 parent 8339c66 commit ab0cc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/clar_libgit2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef struct {
7979
} \
8080
} while (0)
8181

82-
static void cl_git_thread_check(void *data)
82+
GIT_INLINE(void) cl_git_thread_check(void *data)
8383
{
8484
cl_git_thread_err *threaderr = (cl_git_thread_err *)data;
8585
if (threaderr->error != 0)

0 commit comments

Comments
 (0)