Skip to content

Commit ce6b4d0

Browse files
committed
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>
1 parent cc2ef99 commit ce6b4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/attr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "config.h"
66

77

8-
#if defined(__GNUC__)
8+
#if (__GNUC__ >= 10)
99
# define MAYBE_UNUSED [[gnu::unused]]
1010
# define NORETURN [[gnu::__noreturn__]]
1111
# define format_attr(type, fmt, va) [[gnu::format(type, fmt, va)]]

0 commit comments

Comments
 (0)