aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-07-12 14:00:31 +0200
committerRickard Green <[email protected]>2013-07-12 14:00:31 +0200
commitbc30159f5eac936fa9c8ea97d2ab11564448ba7b (patch)
treedb8ca243830044f16aea2e0f2d8fa2fc37546e5c /erts/include
parentec37dd8deb5fff0f0aebffd5d8e086d3cb8e98bc (diff)
parent54c658c89dc8edae1e420861601eec068bc74676 (diff)
downloadotp-bc30159f5eac936fa9c8ea97d2ab11564448ba7b.tar.gz
otp-bc30159f5eac936fa9c8ea97d2ab11564448ba7b.tar.bz2
otp-bc30159f5eac936fa9c8ea97d2ab11564448ba7b.zip
Merge branch 'rickard/warning_fixes' into maint
* rickard/warning_fixes: Fix variable ‘rp_had_locks’ set but not used warning Fix ‘ethr_native_rwlock_destroy’ defined but not used warning Fix 'no previous prototype' warning for dtrace functions
Diffstat (limited to 'erts/include')
-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