From: Yaron Keren Date: Fri, 24 Apr 2015 15:10:15 +0000 (+0000) Subject: Silence clang warning: private field 'data_' is not used. X-Git-Tag: llvmorg-3.7.0-rc1~6064 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=957a81d75c224ffc468c59a25d146ece5364b4d8;p=platform%2Fupstream%2Fllvm.git Silence clang warning: private field 'data_' is not used. llvm-svn: 235720 --- diff --git a/llvm/include/llvm/Support/Mutex.h b/llvm/include/llvm/Support/Mutex.h index ae69634..0f4e61a 100644 --- a/llvm/include/llvm/Support/Mutex.h +++ b/llvm/include/llvm/Support/Mutex.h @@ -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 diff --git a/llvm/include/llvm/Support/RWMutex.h b/llvm/include/llvm/Support/RWMutex.h index 9a5e421..4be9313 100644 --- a/llvm/include/llvm/Support/RWMutex.h +++ b/llvm/include/llvm/Support/RWMutex.h @@ -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