aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@gmail.com>2012-06-25 02:47:20 -0700
committerChristopher Li <sparse@chrisli.org>2012-06-25 02:47:20 -0700
commit0a04210cc856267d8371592dc55f8b8bb7596ecc (patch)
tree3f30b51cfee32f18dfc5bde35b0abbca35534374
parent2313167a83c397e8acc14d10706a7235f60fc497 (diff)
downloadsparse-0a04210cc856267d8371592dc55f8b8bb7596ecc.tar.gz
sparse: Add 'error' to ignored attributes
Add some more ignored attributes which are used in glibc header files. It silences the warnings such as the following: /usr/include/bits/fcntl2.h:36:1: error: attribute '__error__': 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.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/ident-list.h b/ident-list.h
index 5bdfa90b..e00cd964 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -90,6 +90,7 @@ IDENT(restrict); IDENT(__restrict);
IDENT(artificial); IDENT(__artificial__);
IDENT(leaf); IDENT(__leaf__);
IDENT(vector_size); IDENT(__vector_size__);
+IDENT(error); IDENT(__error__);
/* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword
diff --git a/parse.c b/parse.c
index 44eae3d3..99f2ba84 100644
--- a/parse.c
+++ b/parse.c
@@ -509,6 +509,8 @@ const char *ignored_attributes[] = {
"__dllexport__",
"dllimport",
"__dllimport__",
+ "error",
+ "__error__",
"externally_visible",
"__externally_visible__",
"fastcall",