From 947d8931a4b68a7ff4f1e182500d6003f09f9618 Mon Sep 17 00:00:00 2001 From: Marvin Friedrich Date: Tue, 6 Oct 2026 00:24:08 +0200 Subject: [PATCH] fix shitty attributes --- include/zinnia/compiler.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/zinnia/compiler.h b/include/zinnia/compiler.h index b253792..f325788 100644 --- a/include/zinnia/compiler.h +++ b/include/zinnia/compiler.h @@ -14,18 +14,10 @@ #define __format(like, ...) gnu::format(like, __VA_ARGS__) #define __always_inline gnu::always_inline #define __visibility gnu::visibility - -// TODO: Workaround for clang which doesn't have these C23 standard attributes yet. -#if !__has_c_attribute(unsequenced) -#define unsequenced gnu::const -#endif - -#if !__has_c_attribute(reproducible) -#define reproducible gnu::pure -#endif +#define __pure gnu::pure // Only clang has these hints, GCC would throw a warning here. -// clang::noderef also don't support the C23 attribute format. +// clang::noderef also doesn't support the C23 attribute format. #ifdef __clang__ #define __user __attribute__((noderef, address_space(1))) #define __phys __attribute__((noderef, address_space(2)))