From cdf952d345ab4b4bd0867d8d1d8995db062b5263 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 27 Jun 2011 07:15:58 +0200 Subject: [PATCH] Record the position of attributes. The mechanism is there, some warning messages show the position, but recording it was missing in allocate_attribute_zero(). --- parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 6ccd355..ba28de0 100644 --- a/parser.c +++ b/parser.c @@ -1102,7 +1102,8 @@ static int strcmp_underscore(const char *s1, const char *s2) static attribute_t *allocate_attribute_zero(attribute_kind_t kind) { attribute_t *attribute = allocate_ast_zero(sizeof(*attribute)); - attribute->kind = kind; + attribute->kind = kind; + attribute->source_position = *HERE; return attribute; } -- 2.20.1