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:
committed by
Alejandro Colomar
parent
cc2ef99a49
commit
15524dd613
+1
-1
@@ -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)]]
|
||||
|
||||
Reference in New Issue
Block a user