Silence clang warning: private field 'data_' is not used.
authorYaron Keren <yaron.keren@gmail.com>
Fri, 24 Apr 2015 15:10:15 +0000 (15:10 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 24 Apr 2015 15:10:15 +0000 (15:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235720 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Mutex.h
include/llvm/Support/RWMutex.h

index ae69634eff7e102d4557b404a02bb2fc4595099a..0f4e61af443950ffae66722981302a7641ae793a 100644 (file)
@@ -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
index 9a5e4213dfa3671ad58744564607049197cbe65e..4be9313377659752132b081b8beb9ed790281a23 100644 (file)
@@ -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