From f0890bea6c9c34d98337406d1c47650280aa9621 Mon Sep 17 00:00:00 2001 From: KOSAKI Motohiro Date: Sat, 16 Jun 2012 17:44:25 +0300 Subject: [PATCH] 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 Signed-off-by: Dan Carpenter --- ident-list.h | 1 + parse.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ident-list.h b/ident-list.h index b12d1720..973bf579 100644 --- a/ident-list.h +++ b/ident-list.h @@ -88,6 +88,7 @@ IDENT(dllimport); IDENT(__dllimport__); IDENT(dllexport); IDENT(__dllexport__); IDENT(restrict); IDENT(__restrict); IDENT(artificial); IDENT(__artificial__); +IDENT(vector_size); IDENT(__vector_size__); /* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword * itself by name, preventing these tokens from expanding when compiling diff --git a/parse.c b/parse.c index a809c145..2dcd488a 100644 --- a/parse.c +++ b/parse.c @@ -568,6 +568,7 @@ const char *ignored_attributes[] = { "used", "__used__", "vector_size", + "__vector_size__", "visibility", "__visibility__", "warn_unused_result", -- 2.11.4.GIT