diff --git a/libc/src/__support/CPP/mutex.h b/libc/src/__support/CPP/mutex.h index c25c1155b7666..345816fae2336 100644 --- a/libc/src/__support/CPP/mutex.h +++ b/libc/src/__support/CPP/mutex.h @@ -31,7 +31,7 @@ template class lock_guard { // Acquires ownership of the mutex object `m` without attempting to lock // it. The behavior is undefined if the current thread does not hold the // lock on `m`. Does not call `m.lock()` upon resource acquisition. - lock_guard(MutexType &m, adopt_lock_t t) : mutex(m) {} + lock_guard(MutexType &m, adopt_lock_t /* t */) : mutex(m) {} ~lock_guard() { mutex.unlock(); }