Skip to contentSkip to conversation

Ignore the alloc_size attribute.

PATCH In review Michael Stefaniuc 2 participants 2 messages Sep 30, 2009 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
Resend for the chrisl tree.

 parse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
parse.c +2 -0
index fa3b45e..c3f9b6a 100644
@@ -475,6 +475,8 @@ static struct init_keyword {
 const char *ignored_attributes[] = {
 	"alias",
 	"__alias__",
+	"alloc_size",
+	"__alloc_size__",
 	"always_inline",
 	"__always_inline__",
 	"bounded",
Signature · 1 line
1.6.5.rc2
maintainer
#1 lore raw
Quoted 3 lines · Michael Stefaniuc

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