aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-11-21 17:42:34 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-11-21 17:42:34 +0100
commitea6306c7b7cace30efad9582be9d3c50167c91aa (patch)
tree8cdacf730b49047c4ac2e68f68ce43b50b946d88
parente21679a8bb17aac603b8704891e60ac502200629 (diff)
downloadgcc-ea6306c7b7cace30efad9582be9d3c50167c91aa.zip
gcc-ea6306c7b7cace30efad9582be9d3c50167c91aa.tar.gz
gcc-ea6306c7b7cace30efad9582be9d3c50167c91aa.tar.bz2
re PR c++/87393 (gcc/cp/parser.c:13967:37:Unused Entity Issue: expression result unused: -Wunused-value since r251026)
PR c++/87393 * parser.c (cp_parser_linkage_specification): Remove useless dereference of the consume_open method result. From-SVN: r266347
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/parser.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a8e0544..0da294c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2018-11-21 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/87393
+ * parser.c (cp_parser_linkage_specification): Remove useless
+ dereference of the consume_open method result.
+
2018-11-20 Martin Sebor <msebor@redhat.com>
* cp-tree.h (cp_check_const_attributes): Declare.
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 0617f56..09b2b00 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -14223,7 +14223,7 @@ cp_parser_linkage_specification (cp_parser* parser)
/* Consume the `{' token. */
matching_braces braces;
- braces.consume_open (parser)->location;
+ braces.consume_open (parser);
/* Parse the declarations. */
cp_parser_declaration_seq_opt (parser);
/* Look for the closing `}'. */