scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 1e658a6b2cea5c52bad3a79e3a068c47337f3163
parent 6bbd976851f4ceb7284901aeac188895330301ad
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun,  9 Mar 2014 08:02:39 +0100

Remove redundant check of qualifier in fields

This check was done in specifier() and was done again in decl().
The check in specifier() was incorrect, because fields can have
a type specifier, but not a storage qualifier.

Diffstat:
decl.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/decl.c b/decl.c @@ -223,8 +223,6 @@ check_type: warn(options.implicit, "type defaults to 'int' in declaration"); } - if (nested_tags > 0 && (qlf->defined || store->defined)) - error("type qualifer or store specifier in field declaration"); if (!tp->c_signed && !tp->c_unsigned) { switch (tp->type) {