aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@kfv.io>2026-05-01 15:41:49 +0000
committerWarner Losh <imp@FreeBSD.org>2026-06-20 00:23:28 +0000
commit9d87c1aac4a84ac5e82acf872f645a7202977204 (patch)
treed9025b6c89d8d24dad423cb95b7b2462fdf91f80
parent28cecfe27964fdb67497800f5dcd5d3e1033727f (diff)
libc: Add missing kill_dependency macro
Add `kill_dependency` as specified by C11 ยง7.17.3.1. The macro is required to break dependency chains in expressions without affecting the value. No functional impact beyond providing the required, value-preserving definition. Signed-off-by: Faraz Vahedi <kfv@kfv.io> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185
-rw-r--r--sys/sys/stdatomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h
index 2d565ce991be..e6eb46cd6ef3 100644
--- a/sys/sys/stdatomic.h
+++ b/sys/sys/stdatomic.h
@@ -141,6 +141,8 @@ typedef enum {
memory_order_seq_cst = __ATOMIC_SEQ_CST
} memory_order;
+#define kill_dependency(y) (y)
+
/*
* 7.17.4 Fences.
*/