From 2fcd024bdb9b6682751fced139b8968450449e84 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 14 Oct 2024 13:58:38 +0100 Subject: [PATCH] utils/magic.h: ATTR_SENTINEL __attribute__ ((sentinel)) --- utils/magic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/magic.h b/utils/magic.h index a0d5f1ec..7ed0466f 100644 --- a/utils/magic.h +++ b/utils/magic.h @@ -173,12 +173,14 @@ extern char AbortMessage[]; #if defined(__GNUC__) || defined(__clang__) #define ATTR_FORMAT_PRINTF_1 __attribute__((format (printf,1,2))) #define ATTR_FORMAT_PRINTF_2 __attribute__((format (printf,2,3))) + #define ATTR_SENTINEL __attribute__ ((sentinel)) #define ATTR_UNREACHABLE __builtin_unreachable() #define ATTR_NORETURN __attribute__((noreturn)) #define __unused__(x) x __attribute__((unused)) #else #define ATTR_FORMAT_PRINTF_1 /* */ #define ATTR_FORMAT_PRINTF_2 /* */ + #define ATTR_SENTINEL /* */ #define ATTR_UNREACHABLE /* */ #define ATTR_NORETURN /* */ #define __unused__(x) x