PPC: Add some missing V_SET0 patterns
[oota-llvm.git] / lib / Support / Mutex.cpp
index e146b8b0ed16a83377d9e8fa461c4d1a5241eaa5..4e4a026b2f0d970acec9aeba48eefaf83c9ae68a 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.
@@ -59,7 +59,8 @@ MutexImpl::MutexImpl( bool recursive)
   errorcode = pthread_mutexattr_settype(&attr, kind);
   assert(errorcode == 0);
 
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && \
+    !defined(__DragonFly__) && !defined(__Bitrig__)
   // Make it a process local mutex
   errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
   assert(errorcode == 0);