diff options
| author | Emil Medve <Emilian.Medve@Freescale.com> | 2007-10-25 16:12:49 -0500 |
|---|---|---|
| committer | Josh Triplett <josh@freedesktop.org> | 2007-11-13 03:12:12 -0800 |
| commit | 35f463cfcc8e042721d4fa80e4375fba59159cd6 (patch) | |
| tree | 59dec5a531806545abf315ed2bc095f4208028b1 | |
| parent | da954be75937064d83dbfde41f6970b09aa085bb (diff) | |
| download | sparse-dev-35f463cfcc8e042721d4fa80e4375fba59159cd6.tar.gz | |
Handle ignored attribute malloc
This avoids error messages like this:
error: attribute 'malloc': unknown attribute
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
| -rw-r--r-- | ident-list.h | 1 | ||||
| -rw-r--r-- | parse.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ident-list.h b/ident-list.h index b183eac0..8fcd7de0 100644 --- a/ident-list.h +++ b/ident-list.h @@ -69,6 +69,7 @@ IDENT(model); IDENT(__model__); IDENT(format_arg); IDENT(__format_arg__); IDENT(nothrow); IDENT(__nothrow); IDENT(__nothrow__); IDENT(__transparent_union__); +IDENT(malloc); IDENT(__malloc__); IDENT(nonnull); IDENT(__nonnull); IDENT(__nonnull__); IDENT(constructor); IDENT(__constructor__); @@ -283,6 +283,7 @@ static struct init_keyword { { "nothrow", NS_KEYWORD, .op = &ignore_attr_op }, { "__nothrow", NS_KEYWORD, .op = &ignore_attr_op }, { "__nothrow__", NS_KEYWORD, .op = &ignore_attr_op }, + { "malloc", NS_KEYWORD, .op = &ignore_attr_op }, { "__malloc__", NS_KEYWORD, .op = &ignore_attr_op }, { "nonnull", NS_KEYWORD, .op = &ignore_attr_op }, { "__nonnull", NS_KEYWORD, .op = &ignore_attr_op }, |
