Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-08-22 03:50:03 +0400
committerRussell Belfer <rb@github.com>2013-08-22 03:50:03 +0400
commitb37359aac5b02f59c07b453b53191432abc0f942 (patch)
tree2c0324747a0d20b5c29c73c3da04930879376c46 /src/sortedcache.c
parentfe3727408001f9708aad09562ffae5b82c0f7171 (diff)
Fix warnings when compiling without threads
Diffstat (limited to 'src/sortedcache.c')
-rw-r--r--src/sortedcache.c2
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;