Ignore the alloc_size attribute.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux