Remove an unnecessary goto.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 13 Jun 2012 18:58:12 +0000 (20:58 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 14 Jun 2012 08:38:11 +0000 (10:38 +0200)
parser.c

index a558d94..ccba03f 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3009,7 +3009,8 @@ warn_about_long_long:
                        } else {
                                errorf(pos, "multiple datatypes in declaration");
                        }
-                       goto end_error;
+                       specifiers->type = type_error_type;
+                       return;
                }
                }
 
@@ -3038,10 +3039,6 @@ warn_about_long_long:
        if (specifiers->attributes != NULL)
                type = handle_type_attributes(specifiers->attributes, type);
        specifiers->type = type;
-       return;
-
-end_error:
-       specifiers->type = type_error_type;
 }
 
 static type_qualifiers_t parse_type_qualifiers(void)