linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Ignore the alloc_size attribute.
@ 2009-09-29 21:01 Michael Stefaniuc
  0 siblings, 0 replies; only message in thread
From: Michael Stefaniuc @ 2009-09-29 21:01 UTC (permalink / raw)
  To: linux-sparse

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-29 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29 21:01 Ignore the alloc_size attribute Michael Stefaniuc

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).