[COMMITTED] nptl: Replace FALLTHROUGH with [[fallthrough]]
Adhemerval Zanella
adhemerval.zanella@linaro.org
Thu Nov 20 17:33:49 GMT 2025
The b9579342c6 reinstate '/* FALLTHROUGH */' that were replaced
the the C23 [[fallthrough]] by 970364dac0.
---
nptl/pthread_mutex_timedlock.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/nptl/pthread_mutex_timedlock.c b/nptl/pthread_mutex_timedlock.c
index 598c6a0710..0664e4f02b 100644
--- a/nptl/pthread_mutex_timedlock.c
+++ b/nptl/pthread_mutex_timedlock.c
@@ -76,8 +76,7 @@ __pthread_mutex_clocklock_common (pthread_mutex_t *mutex,
/* Check whether we already hold the mutex. */
if (__glibc_unlikely (mutex->__data.__owner == id))
return EDEADLK;
-
- /* FALLTHROUGH */
+ [[fallthrough]];
case PTHREAD_MUTEX_TIMED_NP:
/* Normal mutex. */
--
2.43.0
More information about the Libc-alpha
mailing list