diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-10-13 13:34:15 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-10-26 22:13:40 -0400 |
commit | 369b0217330383925d8091ae01079789cde80598 (patch) | |
tree | e3c14a87d6b43bf0a589ce8cd6dba09501040a7c /src/thread-utils.h | |
parent | 70f7e2c6e3fc908dd6a4e027dc43d5ce5be94d75 (diff) | |
download | libgit2-369b0217330383925d8091ae01079789cde80598.tar.gz |
Clean up various compiler warnings
Diffstat (limited to 'src/thread-utils.h')
-rw-r--r-- | src/thread-utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index 8deedce81..dd1136caf 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -183,8 +183,10 @@ GIT_INLINE(int64_t) git_atomic64_add(git_atomic64 *a, int64_t addend) /* Pthreads Mutex */ #define git_mutex unsigned int -static int git_mutex_init(git_mutex* mutex) { GIT_UNUSED(mutex); return 0; } -static int git_mutex_lock(git_mutex* mutex) { GIT_UNUSED(mutex); return 0; } +GIT_INLINE(int) git_mutex_init(git_mutex *mutex) \ + { GIT_UNUSED(mutex); return 0; } +GIT_INLINE(int) git_mutex_lock(git_mutex *mutex) \ + { GIT_UNUSED(mutex); return 0; } #define git_mutex_unlock(a) (void)0 #define git_mutex_free(a) (void)0 |