[libc-commits] [libc] bb46c0b - [libc] Remove warnings on default values

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Jul 12 17:40:41 PDT 2024


Author: Joseph Huber
Date: 2024-07-12T19:39:46-05:00
New Revision: bb46c0b22407f81cebfd2f3b800e9ed716c7e6a2

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

LOG: [libc] Remove warnings on default values

Summary:
These cause issues because we compile with `-Wno-error`. Remove them for
now. @SchrodingerZhu.

Added: 
    

Modified: 
    libc/src/__support/threads/linux/raw_mutex.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/threads/linux/raw_mutex.h b/libc/src/__support/threads/linux/raw_mutex.h
index 2bc302f49762..dbf8b53b42f7 100644
--- a/libc/src/__support/threads/linux/raw_mutex.h
+++ b/libc/src/__support/threads/linux/raw_mutex.h
@@ -20,7 +20,6 @@
 
 #ifndef LIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY
 #define LIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY 1
-#warning "LIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY is not defined, defaulting to 1"
 #endif
 
 #if LIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY
@@ -29,8 +28,6 @@
 
 #ifndef LIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT
 #define LIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT 100
-#warning                                                                       \
-    "LIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT is not defined, defaulting to 100"
 #endif
 
 namespace LIBC_NAMESPACE_DECL {


        


More information about the libc-commits mailing list