aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-07-11 16:33:09 +0200
committerRickard Green <[email protected]>2013-07-11 16:53:15 +0200
commit70337ed8457402aebf7087ff04718d828d0c19e3 (patch)
tree8189fa01b77a8587892730998182aa4581d02dd2 /erts
parent6b16d650f99044eb2e1975f2d954aa07ed8aae35 (diff)
downloadotp-70337ed8457402aebf7087ff04718d828d0c19e3.tar.gz
otp-70337ed8457402aebf7087ff04718d828d0c19e3.tar.bz2
otp-70337ed8457402aebf7087ff04718d828d0c19e3.zip
Fix ‘ethr_native_rwlock_destroy’ defined but not used warning
Diffstat (limited to 'erts')
-rw-r--r--erts/include/internal/ethread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h
index ab728c65fa..407097d4b1 100644
--- a/erts/include/internal/ethread.h
+++ b/erts/include/internal/ethread.h
@@ -411,6 +411,7 @@ extern ethr_runtime_t ethr_runtime__;
#ifdef VALGRIND /* mutex as fallback for spinlock for VALGRIND */
# undef ETHR_HAVE_NATIVE_SPINLOCKS
+# undef ETHR_HAVE_NATIVE_RWSPINLOCKS
#else
# include "ethr_optimized_fallbacks.h"
#endif
@@ -693,7 +694,7 @@ static ETHR_INLINE int
ETHR_INLINE_FUNC_NAME_(ethr_rwlock_destroy)(ethr_rwlock_t *lock)
{
#ifdef ETHR_HAVE_NATIVE_RWSPINLOCKS
- return 0;
+ return ethr_native_rwlock_destroy(lock);
#else
return ethr_rwmutex_destroy((ethr_rwmutex *) lock);
#endif