From: Michael Stefaniuc <mstefani@redhat.com>
To: linux-sparse@vger.kernel.org
Subject: Ignore the alloc_size attribute.
Date: Tue, 29 Sep 2009 23:01:19 +0200 [thread overview]
Message-ID: <20090929210119.GB3592@redhat.com> (raw)
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 <mstefani@redhat.com>
---
parse.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/parse.c b/parse.c
index 5f6f9c3..dfd5703 100644
--- a/parse.c
+++ b/parse.c
@@ -475,6 +475,8 @@ static struct init_keyword {
{ "__nothrow__", NS_KEYWORD, .op = &ignore_attr_op },
{ "malloc", NS_KEYWORD, .op = &ignore_attr_op },
{ "__malloc__", NS_KEYWORD, .op = &ignore_attr_op },
+ { "alloc_size", NS_KEYWORD, .op = &ignore_attr_op },
+ { "__alloc_size__", NS_KEYWORD, .op = &ignore_attr_op },
{ "nonnull", NS_KEYWORD, .op = &ignore_attr_op },
{ "__nonnull", NS_KEYWORD, .op = &ignore_attr_op },
{ "__nonnull__", NS_KEYWORD, .op = &ignore_attr_op },
--
1.6.5.rc1
reply other threads:[~2009-09-29 21:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090929210119.GB3592@redhat.com \
--to=mstefani@redhat.com \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).