aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-08 20:15:34 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-08 20:15:34 +0000
commit46c28185abd94175e479cec1ffaa9f2dd89f9e38 (patch)
tree029f4813f9c9d7a601ac47bae5d9699c820344fc /gdb/values.c
parent414b2c8f7a865c2ff2fa381d618f7cd446dddbf4 (diff)
downloadgdb-46c28185abd94175e479cec1ffaa9f2dd89f9e38.zip
gdb-46c28185abd94175e479cec1ffaa9f2dd89f9e38.tar.gz
gdb-46c28185abd94175e479cec1ffaa9f2dd89f9e38.tar.bz2
some gcc lint
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 65ecb23..8890c8e 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -334,11 +334,9 @@ show_values (num_exp, from_tty)
if (num_exp)
{
- if (num_exp[0] == '+' && num_exp[1] == '\0')
- /* "info history +" should print from the stored position. */
- ;
- else
- /* "info history <exp>" should print around value number <exp>. */
+ /* "info history +" should print from the stored position.
+ "info history <exp>" should print around value number <exp>. */
+ if (num_exp[0] != '+' || num_exp[1] != '\0')
num = parse_and_eval_address (num_exp) - 5;
}
else
@@ -1008,7 +1006,6 @@ vb_match (type, index, basetype)
struct type *basetype;
{
struct type *fieldtype;
- struct type *fieldtype_target_type;
char *name = TYPE_FIELD_NAME (type, index);
char *field_class_name = NULL;