projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a74a0
)
Remove an unnecessary goto.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 13 Jun 2012 18:58:12 +0000
(20:58 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 14 Jun 2012 08:38:11 +0000
(10:38 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/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)