[libc-commits] [libc] a7ee81e - [libc] Remove unused variable causing build errors

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu May 9 05:00:33 PDT 2024


Author: Joseph Huber
Date: 2024-05-09T07:00:25-05:00
New Revision: a7ee81e8279e0bf6e05617a4a638e5f2f8e45022

URL: https://github.com/llvm/llvm-project/commit/a7ee81e8279e0bf6e05617a4a638e5f2f8e45022
DIFF: https://github.com/llvm/llvm-project/commit/a7ee81e8279e0bf6e05617a4a638e5f2f8e45022.diff

LOG: [libc] Remove unused variable causing build errors

Added: 
    

Modified: 
    libc/src/__support/CPP/mutex.h

Removed: 
    


################################################################################
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 <typename MutexType> 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(); }
 


        


More information about the libc-commits mailing list