lib/attr.h: use C23 attributes only with gcc >= 10

These are not available on earlier versions and builds break there.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
This commit is contained in:
Alexander Kanavin
2025-01-07 17:03:32 +01:00
committed by Alejandro Colomar
parent cc2ef99a49
commit 15524dd613
+1 -1
View File
@@ -5,7 +5,7 @@
#include "config.h"
#if defined(__GNUC__)
#if (__GNUC__ >= 10)
# define MAYBE_UNUSED [[gnu::unused]]
# define NORETURN [[gnu::__noreturn__]]
# define format_attr(type, fmt, va) [[gnu::format(type, fmt, va)]]