aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@gmail.com>2012-06-25 02:42:58 -0700
committerChristopher Li <sparse@chrisli.org>2012-06-25 02:46:20 -0700
commit2313167a83c397e8acc14d10706a7235f60fc497 (patch)
tree963f4c8ec443f62a543199feb4099bbc68d30a81
parent70c5b9619f9f3d4a33af043d019a073a4dc6e470 (diff)
downloadsparse-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.h1
-rw-r--r--parse.c1
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
diff --git a/parse.c b/parse.c
index 8fbba6bf..44eae3d3 100644
--- a/parse.c
+++ b/parse.c
@@ -570,6 +570,7 @@ const char *ignored_attributes[] = {
"used",
"__used__",
"vector_size",
+ "__vector_size__",
"visibility",
"__visibility__",
"warn_unused_result",