summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-12-15 21:48:23 -0500
committerIan Moffett <ian@osmora.org>2024-12-15 21:48:23 -0500
commit649d310cba6a7b666f2862bc8c72a19c3e183eea (patch)
treee97fa9c4d0085ce363f672b0af52c4c2e3bbe858 /sys/include
parent3fea90b0047f920c8b70e1d3d306d8afe0f99983 (diff)
kernel: Add __nothing def to cdefs.h
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/cdefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h
index 335f69a..73ff4ca 100644
--- a/sys/include/sys/cdefs.h
+++ b/sys/include/sys/cdefs.h
@@ -37,6 +37,7 @@
#define __packed __attribute__((__packed__))
#define __dead __attribute__((__noreturn__))
#define __unused __attribute__((__unused__))
+#define __nothing ((void)0)
#define __likely(exp) __builtin_expect(((exp) != 0), 1)
#define __unlikely(exp) __builtin_expect(((exp) != 0), 0)
#define __static_assert _Static_assert