projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb42589
)
Remove dead assignment and the stale assert, which checked for the dead value, with it.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 25 Apr 2012 07:17:09 +0000
(09:17 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 26 Apr 2012 07:57:52 +0000
(09:57 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
18c59f6
..
f1bbaa6
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-9998,9
+9998,8
@@
end_error:
*/
static statement_t *intern_parse_statement(void)
{
- statement_t *statement = NULL;
-
/* declaration or statement */
+ statement_t *statement;
switch (token.kind) {
case T_IDENTIFIER: {
token_kind_t la1_type = (token_kind_t)look_ahead(1)->kind;
@@
-10075,9
+10074,6
@@
static statement_t *intern_parse_statement(void)
break;
}
- assert(statement != NULL
- && statement->base.source_position.input_name != NULL);
-
return statement;
}