linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Ignore the alloc_size attribute.
@ 2009-09-30 20:19 Michael Stefaniuc
  2009-09-30 21:02 ` Christopher Li
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Stefaniuc @ 2009-09-30 20:19 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 <mstefaniuc@gmail.com>
---
Resend for the chrisl tree.


 parse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/parse.c b/parse.c
index fa3b45e..c3f9b6a 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",
-- 
1.6.5.rc2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Ignore the alloc_size attribute.
  2009-09-30 20:19 [PATCH] Ignore the alloc_size attribute Michael Stefaniuc
@ 2009-09-30 21:02 ` Christopher Li
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Li @ 2009-09-30 21:02 UTC (permalink / raw)
  To: Michael Stefaniuc; +Cc: linux-sparse

On Wed, Sep 30, 2009 at 1:19 PM, Michael Stefaniuc <mstefaniuc@gmail.com> wrote:
> 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.

Both patches were applied and pushed.

Thanks

Chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-30 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 20:19 [PATCH] Ignore the alloc_size attribute Michael Stefaniuc
2009-09-30 21:02 ` Christopher Li

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