aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stefaniuc <mstefaniuc@gmail.com>2009-09-30 20:19:30 +0000
committerChristopher <sparse@chrisli.org>2010-03-28 17:51:36 -0700
commite16c7c867780d6454e93a9b4a10e3a048515e33b (patch)
treef147ab4bdcfc7088ec7fb9adacf8219d14e4a32b
parentba61a9588c9d2a9c3d019ee867827ed563bb1ff1 (diff)
downloadsparse-e16c7c867780d6454e93a9b4a10e3a048515e33b.tar.gz
Ignore the alloc_size attribute.
Wine has annotated the Win32 alloc functions with the alloc_size attribute. This cuts down the noise a lot when running sparse on the Wine source code. Signed-off-by: Michael Stefaniuc <mstefaniuc@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index fa3b45eb..c3f9b6a9 100644
--- a/parse.c
+++ b/parse.c
@@ -475,6 +475,8 @@ static struct init_keyword {
const char *ignored_attributes[] = {
"alias",
"__alias__",
+ "alloc_size",
+ "__alloc_size__",
"always_inline",
"__always_inline__",
"bounded",