This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] C PATCH to remove a redundant line
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 15 Mar 2017 12:18:59 +0100
- Subject: [committed] C PATCH to remove a redundant line
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=polacek at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0A11713A5E
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0A11713A5E
We set ENUM_LOC, and then overwrite it without ever using it. Remove the line.
Bootstrapped/regtested on x86_64-linux, applying to trunk.
2017-03-15 Marek Polacek <polacek@redhat.com>
* c-parser.c (c_parser_enum_specifier): Remove redundant line.
diff --git gcc/c/c-parser.c gcc/c/c-parser.c
index 46883e2..5bc238b 100644
--- gcc/c/c-parser.c
+++ gcc/c/c-parser.c
@@ -2694,7 +2694,6 @@ c_parser_enum_specifier (c_parser *parser)
location_t enum_loc;
location_t ident_loc = UNKNOWN_LOCATION; /* Quiet warning. */
gcc_assert (c_parser_next_token_is_keyword (parser, RID_ENUM));
- enum_loc = c_parser_peek_token (parser)->location;
c_parser_consume_token (parser);
attrs = c_parser_attributes (parser);
enum_loc = c_parser_peek_token (parser)->location;
Marek