summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-11-18 13:00:19 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-11-20 14:23:43 -0300
commit20e92c95123a0fafee9f35714697986a48fc087d (patch)
tree12f4eea057a52d3015b865ec1e0beb4d9d6963d9
parent951bb5c458474adbe9536192f58edb8f877ce36e (diff)
nptl: Replace FALLTHROUGH with [[fallthrough]]
The b9579342c6 reinstate '/* FALLTHROUGH */' that were replaced the the C23 [[fallthrough]] by 970364dac0.
-rw-r--r--nptl/pthread_mutex_timedlock.c3
1 files changed, 1 insertions, 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. */