aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-29 15:23:51 -0600
committerTom Tromey <tom@tromey.com>2018-07-30 08:29:47 -0600
commitdba7455e76f87abe81cc9e4e9b1f979c1da02846 (patch)
treee7c272e7f1b5ab8c32fe07046e7c86652b90ad09 /gdb/valops.c
parenta05b9f5e1eb8f01eea23eff3902fa57f1f28a4e1 (diff)
downloadgdb-dba7455e76f87abe81cc9e4e9b1f979c1da02846.zip
gdb-dba7455e76f87abe81cc9e4e9b1f979c1da02846.tar.gz
gdb-dba7455e76f87abe81cc9e4e9b1f979c1da02846.tar.bz2
Remove old lint code
This removes dead code that, according to the comments, existed to placate lint. I don't think this has been relevant in a long time, and certainly not since gdb switched to C++. Tested by rebuilding. ChangeLog 2018-07-30 Tom Tromey <tom@tromey.com> * cli/cli-decode.c (lookup_cmd): Remove lint code. * value.c (unpack_long): Remove lint code. * valops.c (value_ind): Remove lint code. * valarith.c (value_x_binop, value_x_unop, value_equal) (value_pos): Remove lint code.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 9bdbf22..de6f839 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1588,7 +1588,6 @@ value_ind (struct value *arg1)
}
error (_("Attempt to take contents of a non-pointer value."));
- return 0; /* For lint -- never reached. */
}
/* Create a value for an array by allocating space in GDB, copying the