[Bf-blender-cvs] [96415cb52a9] master: Code cleanup: fix harmless compiler warning.
Brecht Van Lommel
noreply at git.blender.org
Mon Nov 20 23:46:52 CET 2017
Commit: 96415cb52a95be5cecec343496021e067b87d6ad
Author: Brecht Van Lommel
Date: Mon Nov 20 23:32:06 2017 +0100
Branches: master
https://developer.blender.org/rB96415cb52a95be5cecec343496021e067b87d6ad
Code cleanup: fix harmless compiler warning.
===================================================================
M source/blender/blenlib/intern/threads.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list