From: Christoph Mallon Date: Wed, 25 Apr 2012 07:17:09 +0000 (+0200) Subject: Remove dead assignment and the stale assert, which checked for the dead value, with it. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3ebfcac30456a053d3eba3fb1a2df7b1e73668b8;p=cparser Remove dead assignment and the stale assert, which checked for the dead value, with it. --- diff --git a/parser.c b/parser.c index 18c59f6..f1bbaa6 100644 --- 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; }