diff options
author | KOSAKI Motohiro <kosaki.motohiro@gmail.com> | 2012-06-25 02:42:58 -0700 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2012-06-25 02:46:20 -0700 |
commit | 2313167a83c397e8acc14d10706a7235f60fc497 (patch) | |
tree | 963f4c8ec443f62a543199feb4099bbc68d30a81 | |
parent | 70c5b9619f9f3d4a33af043d019a073a4dc6e470 (diff) | |
download | sparse-2313167a83c397e8acc14d10706a7235f60fc497.tar.gz |
sparse: Add '__vector_size__' to ignored attributes
We already had "vector_size" but we also need __vector_size__ to silence
some warnings in glibc:
/usr/include/bits/link.h:67:45: error: attribute '__vector_size__': unknown attribute
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r-- | ident-list.h | 1 | ||||
-rw-r--r-- | parse.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ident-list.h b/ident-list.h index 35ac6bdf..5bdfa90b 100644 --- a/ident-list.h +++ b/ident-list.h @@ -89,6 +89,7 @@ IDENT(dllexport); IDENT(__dllexport__); IDENT(restrict); IDENT(__restrict); IDENT(artificial); IDENT(__artificial__); IDENT(leaf); IDENT(__leaf__); +IDENT(vector_size); IDENT(__vector_size__); /* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword @@ -570,6 +570,7 @@ const char *ignored_attributes[] = { "used", "__used__", "vector_size", + "__vector_size__", "visibility", "__visibility__", "warn_unused_result", |