From 5240b8c7661323db17198f60b16866032c1922d2 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Wed, 17 Aug 2005 17:22:31 +0400 Subject: [PATCH] enum: improve error messages In case of malformed enum definition: enum E {}; the error will be reported from examine_symbol_type(), this could be very confusing. Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds --- symbol.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'symbol.c') diff --git a/symbol.c b/symbol.c index 7a3745e..a942c90 100644 --- a/symbol.c +++ b/symbol.c @@ -323,11 +323,6 @@ static struct symbol *examine_enum_type(struct symbol *sym) { struct symbol *base_type = examine_base_type(sym); - if (base_type == &bad_ctype) { - warning(sym->pos, "invalid enum type"); - sym->bit_size = -1; - return sym; - } sym->ctype.modifiers |= (base_type->ctype.modifiers & MOD_SIGNEDNESS); sym->bit_size = bits_in_enum; if (base_type->bit_size > sym->bit_size) -- cgit v1.2.3-65-gdbad