diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-02-28 22:55:06 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-02-28 22:55:06 +0000 |
commit | 976aa66e892a9cb10522a68a3347798ab4d7f0a0 (patch) | |
tree | ffd41fb9f57ac9931bcb7ad3e60936e950a3b533 | |
parent | 5b92b49f16b3b9cb925d4728e58067ada405737d (diff) | |
download | gdb-976aa66e892a9cb10522a68a3347798ab4d7f0a0.zip gdb-976aa66e892a9cb10522a68a3347798ab4d7f0a0.tar.gz gdb-976aa66e892a9cb10522a68a3347798ab4d7f0a0.tar.bz2 |
2011-02-28 Michael Snyder <msnyder@vmware.com>
* m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/m2-lang.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1548439..9ef42a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-02-28 Michael Snyder <msnyder@vmware.com> + * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. + * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. * p-valprint.c (pascal_val_print): Discard unused value. diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index b0a9e27..f83c622 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -255,7 +255,7 @@ evaluate_subexp_modula2 (struct type *expect_type, struct expression *exp, if (value_type (arg1) != type) arg1 = value_cast (type, arg1); - type = check_typedef (value_type (arg1)); + check_typedef (value_type (arg1)); return value_ind (value_ptradd (arg1, value_as_long (arg2))); } else |