aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-12-17 22:01:18 +0300
committerAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-12-18 20:30:22 +0300
commit383fe762a3c5d4a5c6dae2046e852e17ea6385d3 (patch)
treef16803263acc680509d1eab140598bb2e4ee5efe
parentc01cc97bcb7bee491acb93ab1b5f87cae0b3a9d1 (diff)
downloadsparse-383fe762a3c5d4a5c6dae2046e852e17ea6385d3.tar.gz
sparse-383fe762a3c5d4a5c6dae2046e852e17ea6385d3.tar.xz
sparse-383fe762a3c5d4a5c6dae2046e852e17ea6385d3.zip
Warning should be enough for an unhandled transparent union
An error would be issued if such union is actually used. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 877414c..915ae20 100644
--- a/parse.c
+++ b/parse.c
@@ -987,7 +987,7 @@ static struct token *attribute_conditional_context(struct token *token, struct s
static struct token *attribute_transparent_union(struct token *token, struct symbol *attr, struct ctype *ctype)
{
if (Wtransparent_union)
- sparse_error(token->pos, "ignoring attribute __transparent_union__");
+ warning(token->pos, "ignoring attribute __transparent_union__");
return token;
}