diff options
author | Russell Belfer <rb@github.com> | 2013-08-21 16:50:03 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-08-21 16:50:03 -0700 |
commit | b37359aac5b02f59c07b453b53191432abc0f942 (patch) | |
tree | 2c0324747a0d20b5c29c73c3da04930879376c46 /src/sortedcache.c | |
parent | fe3727408001f9708aad09562ffae5b82c0f7171 (diff) | |
download | libgit2-b37359aac5b02f59c07b453b53191432abc0f942.tar.gz |
Fix warnings when compiling without threads
Diffstat (limited to 'src/sortedcache.c')
-rw-r--r-- | src/sortedcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sortedcache.c b/src/sortedcache.c index 2efa3c4e9..d7e74d3e5 100644 --- a/src/sortedcache.c +++ b/src/sortedcache.c @@ -176,6 +176,8 @@ bool git_sortedcache_out_of_date(git_sortedcache *sc) /* lock sortedcache while making modifications */ int git_sortedcache_lock(git_sortedcache *sc) { + GIT_UNUSED(sc); /* to prevent warning when compiled w/o threads */ + if (git_mutex_lock(&sc->lock) < 0) { giterr_set(GITERR_OS, "Unable to acquire mutex lock"); return -1; |