Attribute "sentinel"
PATCH 1/1 Attribute "sentinel"
[This is a resend.]
This makes sparse ignore the "sentinel" attribute.
Signed-off-by Morten Welinder <[email protected]>
ident-list.h +1 -0
@@ -53,6 +53,7 @@ IDENT(noinline);IDENT (deprecated);IDENT (__const);IDENT (__const__);IDENT (noreturn);IDENT (__noreturn__);IDENT (regparm);IDENT (weak);IDENT (__weak__); +IDENT (__sentinel__);IDENT (sentinel);IDENT (alias);IDENT (pure);IDENT (always_inline);IDENT (syscall_linkage);IDENT (visibility);IDENT (bitwise);IDENT (__bitwise__);
parse.c +3 -0
@@ -517,6 +517,9 @@ static const char * handle_attribute(strif (attribute == &noreturn_ident || attribute == &__noreturn___ident)return NULL ; +if (attribute == &sentinel_ident || + attribute == &__sentinel___ident) +return NULL ;if (attribute == ®parm_ident)return NULL ; if (attribute == &weak_ident ||