aboutsummaryrefslogtreecommitdiff
path: root/lib/System/RWMutex.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-10-20 04:05:29 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-10-20 04:05:29 +0000
commitf10c519249f8565259c8dc6ff315d5090bdf9449 (patch)
tree5701a779b0bd547e10b3aff1158854a8d9282d02 /lib/System/RWMutex.cpp
parent65513605353c7e3ee8be6fc92892f257ad399d92 (diff)
Add ATTRIBUTE_UNUSED for -Asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/RWMutex.cpp')
-rw-r--r--lib/System/RWMutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/RWMutex.cpp b/lib/System/RWMutex.cpp
index deb04709d8..be41ee6847 100644
--- a/lib/System/RWMutex.cpp
+++ b/lib/System/RWMutex.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/System/RWMutex.h"
#include <cstring>
@@ -72,8 +73,7 @@ RWMutexImpl::RWMutexImpl()
#endif
// Initialize the rwlock
- int errorcode = pthread_rwlock_init(rwlock, NULL);
- (void)errorcode;
+ int ATTRIBUTE_UNUSED errorcode = pthread_rwlock_init(rwlock, NULL);
assert(errorcode == 0);
// Assign the data member