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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-21 01:32:06 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-21 01:32:06 +0300
commit96415cb52a95be5cecec343496021e067b87d6ad (patch)
treecceb5f183164e587f55876925033f53df9e89e19
parentd089875c4c753f084e02849462ec1bd6f785eadf (diff)
Code cleanup: fix harmless compiler warning.
-rw-r--r--source/blender/blenlib/intern/threads.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c
index fbb64f3ece2..2f961701801 100644
--- a/source/blender/blenlib/intern/threads.c
+++ b/source/blender/blenlib/intern/threads.c
@@ -508,14 +508,16 @@ void BLI_spin_unlock(SpinLock *spin)
#endif
}
-void BLI_spin_end(SpinLock *spin)
+#if defined(__APPLE__) || defined(_MSC_VER)
+void BLI_spin_end(SpinLock *UNUSED(spin))
{
-#if defined(__APPLE__)
-#elif defined(_MSC_VER)
+}
#else
+void BLI_spin_end(SpinLock *spin)
+{
pthread_spin_destroy(spin);
-#endif
}
+#endif
/* Read/Write Mutex Lock */