From 508df168f42a58ac296b4fdce308b6d7eed16dc7 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 25 Oct 2012 20:14:55 +0200 Subject: [PATCH] Fix commit 85f6fad3a6acbfa07a3dc45b673965fc26890d8e Don't reset nocode_wanted with saved_nocode_wanted if it hasn't been modified (and hence saved_nocode_wanted is uninitialized). --- tccgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 20cd4535..4e58ef02 100644 --- a/tccgen.c +++ b/tccgen.c @@ -3317,7 +3317,8 @@ static void type_decl(CType *type, AttributeDef *ad, int *v, int td) nocode_wanted = 1; } post_type(type, ad); - nocode_wanted = saved_nocode_wanted; + if (storage & VT_STATIC) + nocode_wanted = saved_nocode_wanted; type->t |= storage; if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2) parse_attribute(ad); -- 2.11.4.GIT