aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-name-parser.y
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2019-03-12 16:56:02 +0000
committerPedro Alves <palves@redhat.com>2019-03-12 16:56:02 +0000
commit3276427003bd1fc676d1cb913c4d09a9f7b1c74f (patch)
treee92dc78b04485c5986667b6be1a863cef9635300 /gdb/cp-name-parser.y
parent17547186c25aa96d078a6ff9d61a55880fa009f4 (diff)
downloadbinutils-3276427003bd1fc676d1cb913c4d09a9f7b1c74f.zip
binutils-3276427003bd1fc676d1cb913c4d09a9f7b1c74f.tar.gz
binutils-3276427003bd1fc676d1cb913c4d09a9f7b1c74f.tar.bz2
Fix test-cp-name-parser build, unused variable
$ make test-cp-name-parser ... CXX test-cp-name-parser.o src/gdb/cp-name-parser.y: In function ‘int gdb::main(int, char**)’: src/gdb/cp-name-parser.y:2137:6: error: unused variable ‘len’ [-Werror=unused-variable] int len; ^~~ cc1plus: all warnings being treated as errors gdb/ChangeLog: 2019-03-12 Pedro Alves <palves@redhat.com> * cp-name-parser.y (main): Remove unused 'len' variable.
Diffstat (limited to 'gdb/cp-name-parser.y')
-rw-r--r--gdb/cp-name-parser.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index 284b1ff..ec17210 100644
--- a/gdb/cp-name-parser.y
+++ b/gdb/cp-name-parser.y
@@ -2129,7 +2129,6 @@ main (int argc, char **argv)
if (argv[arg] == NULL)
while (fgets (buf, 65536, stdin) != NULL)
{
- int len;
buf[strlen (buf) - 1] = 0;
/* Use DMGL_VERBOSE to get expanded standard substitutions. */
c = trim_chars (buf, &extra_chars);