summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Li <chrisl@heli.(none)>2010-02-10 01:32:30 -0800
committerChristopher <sparse@chrisli.org>2010-03-28 17:51:36 -0700
commitb4ef55610696028e8bf2b94797faa825784dad4a (patch)
tree19d4939df742dc0c9b9b89cc1982b6a4cfe80f0c
parentpossible fix to cgcc issue in sparse 0.4.2: (diff)
downloadsparse-b4ef55610696028e8bf2b94797faa825784dad4a.tar.gz
sparse-b4ef55610696028e8bf2b94797faa825784dad4a.tar.bz2
sparse-b4ef55610696028e8bf2b94797faa825784dad4a.zip
Pointer don't inherent the alignment from base type
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 66b8112..f81b19f 100644
--- a/parse.c
+++ b/parse.c
@@ -1698,6 +1698,7 @@ static struct token *pointer(struct token *token, struct decl_state *ctx)
ctx->ctype.base_type = ptr;
ctx->ctype.as = 0;
ctx->ctype.contexts = NULL;
+ ctx->ctype.alignment = 0;
token = handle_qualifiers(token->next, ctx);
ctx->ctype.base_type->endpos = token->pos;