From: Alexander Kanavin Date: Tue, 7 Jan 2025 16:03:32 +0000 (+0100) Subject: lib/attr.h: use C23 attributes only with gcc >= 10 X-Git-Tag: 4.17.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15524dd6138267dc20dac793ff5e40c85fe91621;p=thirdparty%2Fshadow.git 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 --- diff --git a/lib/attr.h b/lib/attr.h index 02c7e2522..d7237722d 100644 --- a/lib/attr.h +++ b/lib/attr.h @@ -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)]]