aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stefaniuc <mstefaniuc@gmail.com>2009-09-30 20:18:50 +0000
committerChristopher <sparse@chrisli.org>2010-03-28 17:51:36 -0700
commitba61a9588c9d2a9c3d019ee867827ed563bb1ff1 (patch)
treeedd3b0d42e1a92e5a5a65dc652c41595ed8df547
parentDeclare ignored attributres into a list of string. (diff)
downloadsparse-ba61a9588c9d2a9c3d019ee867827ed563bb1ff1.tar.gz
sparse-ba61a9588c9d2a9c3d019ee867827ed563bb1ff1.tar.bz2
sparse-ba61a9588c9d2a9c3d019ee867827ed563bb1ff1.zip
Ignore the ms_abi/sysv_abi attributes.
This is needed for getting a meaningful sparse run on a Wine 64-bit compile. Else the basic Win32 headers will produce tons of error: attribute 'ms_abi': unknown attribute which end in error: too many errors. The sysv_abi attribute was just added for symmetry. Signed-off-by: Michael Stefaniuc <mstefaniuc@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 34fa562..fa3b45e 100644
--- a/parse.c
+++ b/parse.c
@@ -508,6 +508,8 @@ const char *ignored_attributes[] = {
"__malloc__",
"model",
"__model__",
+ "ms_abi",
+ "__ms_abi__",
"no_instrument_function",
"__no_instrument_function__",
"noinline",
@@ -530,6 +532,8 @@ const char *ignored_attributes[] = {
"__stdcall__",
"syscall_linkage",
"__syscall_linkage__",
+ "sysv_abi",
+ "__sysv_abi__",
"unused",
"__unused__",
"used",