diff options
Diffstat (limited to 'llvm/lib/System/RWMutex.cpp')
| -rw-r--r-- | llvm/lib/System/RWMutex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/RWMutex.cpp b/llvm/lib/System/RWMutex.cpp index deb04709d82..be41ee6847d 100644 --- a/llvm/lib/System/RWMutex.cpp +++ b/llvm/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 |

