summaryrefslogtreecommitdiffstats
path: root/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sync.c b/sync.c
index 0151db5d..f9539153 100644
--- a/sync.c
+++ b/sync.c
@@ -57,6 +57,7 @@ SyncObjExit(pthread_mutex_t **mut)
}
}
+#ifndef NDEBUG
/* lock an object. The synchronization tool (mutex) must be passed in.
*/
void
@@ -72,5 +73,6 @@ unlockObj(pthread_mutex_t *mut)
{
pthread_mutex_unlock(mut);
}
+#endif /* #ifndef NDEBUG */
#endif /* #ifdef USE_PTHREADS */