summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-04-24 15:10:15 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-04-24 15:10:15 +0000
commit957a81d75c224ffc468c59a25d146ece5364b4d8 (patch)
tree356eac23a770d91a15d02c7fa39e36533cb65252 /llvm
parent500f3764285081d17292811d4e9f30140a0cdba4 (diff)
downloadbcm5719-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.h2
-rw-r--r--llvm/include/llvm/Support/RWMutex.h2
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
OpenPOWER on IntegriCloud