[llvm] r235720 - Silence clang warning: private field 'data_' is not used.
Yaron Keren
yaron.keren at gmail.com
Fri Apr 24 08:10:15 PDT 2015
Author: yrnkrn
Date: Fri Apr 24 10:10:15 2015
New Revision: 235720
URL: http://llvm.org/viewvc/llvm-project?rev=235720&view=rev
Log:
Silence clang warning: private field 'data_' is not used.
Modified:
llvm/trunk/include/llvm/Support/Mutex.h
llvm/trunk/include/llvm/Support/RWMutex.h
Modified: llvm/trunk/include/llvm/Support/Mutex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Mutex.h?rev=235720&r1=235719&r2=235720&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Mutex.h (original)
+++ llvm/trunk/include/llvm/Support/Mutex.h Fri Apr 24 10:10:15 2015
@@ -70,7 +70,9 @@ namespace llvm
/// @name Platform Dependent Data
/// @{
private:
+#if defined(LLVM_ENABLE_THREADS) && LLVM_ENABLE_THREADS != 0
void* data_; ///< We don't know what the data will be
+#endif
/// @}
/// @name Do Not Implement
Modified: llvm/trunk/include/llvm/Support/RWMutex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/RWMutex.h?rev=235720&r1=235719&r2=235720&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/RWMutex.h (original)
+++ llvm/trunk/include/llvm/Support/RWMutex.h Fri Apr 24 10:10:15 2015
@@ -70,7 +70,9 @@ namespace llvm
/// @name Platform Dependent Data
/// @{
private:
+#if defined(LLVM_ENABLE_THREADS) && LLVM_ENABLE_THREADS != 0
void* data_; ///< We don't know what the data will be
+#endif
/// @}
/// @name Do Not Implement
More information about the llvm-commits
mailing list