Persuade GCC that there is nothing worth warning about here (there isn't).
[oota-llvm.git] / lib / Support / Mutex.cpp
index e146b8b0ed16a83377d9e8fa461c4d1a5241eaa5..da5baab4be468bc73c1cce1d70b6f1b1aaeed71c 100644 (file)
@@ -51,7 +51,7 @@ MutexImpl::MutexImpl( bool recursive)
 
   // Initialize the mutex attributes
   int errorcode = pthread_mutexattr_init(&attr);
-  assert(errorcode == 0);
+  assert(errorcode == 0); (void)errorcode;
 
   // Initialize the mutex as a recursive mutex, if requested, or normal
   // otherwise.