From 649d310cba6a7b666f2862bc8c72a19c3e183eea Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 15 Dec 2024 21:48:23 -0500 Subject: kernel: Add __nothing def to cdefs.h Signed-off-by: Ian Moffett --- sys/include/sys/cdefs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include') 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 -- cgit v1.2.3