diff options
| author | Yaron Keren <yaron.keren@gmail.com> | 2015-04-24 15:10:15 +0000 |
|---|---|---|
| committer | Yaron Keren <yaron.keren@gmail.com> | 2015-04-24 15:10:15 +0000 |
| commit | 957a81d75c224ffc468c59a25d146ece5364b4d8 (patch) | |
| tree | 356eac23a770d91a15d02c7fa39e36533cb65252 /llvm | |
| parent | 500f3764285081d17292811d4e9f30140a0cdba4 (diff) | |
| download | bcm5719-llvm-957a81d75c224ffc468c59a25d146ece5364b4d8.tar.gz bcm5719-llvm-957a81d75c224ffc468c59a25d146ece5364b4d8.zip | |
Silence clang warning: private field 'data_' is not used.
llvm-svn: 235720
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/Mutex.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/RWMutex.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Mutex.h b/llvm/include/llvm/Support/Mutex.h index ae69634eff7..0f4e61af443 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 9a5e4213dfa..4be93133776 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 |

