diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-21 01:32:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-21 01:32:06 +0300 |
commit | 96415cb52a95be5cecec343496021e067b87d6ad (patch) | |
tree | cceb5f183164e587f55876925033f53df9e89e19 | |
parent | d089875c4c753f084e02849462ec1bd6f785eadf (diff) |
Code cleanup: fix harmless compiler warning.
-rw-r--r-- | source/blender/blenlib/intern/threads.c | 10 |
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 */ |