This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] ada-lang.c::ada_value_cast: remove unused parameter noside
- From: Joel Brobecker <brobecke at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 17 Nov 2017 00:27:22 -0000
- Subject: [binutils-gdb] ada-lang.c::ada_value_cast: remove unused parameter noside
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b7e228508255359e473611fdf7c067b0b79cadbe
commit b7e228508255359e473611fdf7c067b0b79cadbe
Author: Joel Brobecker <brobecker@adacore.com>
Date: Thu Nov 16 16:15:13 2017 -0800
ada-lang.c::ada_value_cast: remove unused parameter noside
gdb/ChangeLog:
* ada-lang.c (ada_value_cast): Remove parameter "noside".
Update all callers.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/ada-lang.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ab329df..aa7c608 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-16 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_value_cast): Remove parameter "noside".
+ Update all callers.
+
2017-11-16 Pedro Alves <palves@redhat.com>
* python/py-unwind.c (pyuw_sniffer): Translate
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index ca5cdd1..fe263e6 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -10045,7 +10045,7 @@ add_component_interval (LONGEST low, LONGEST high,
is different. */
static struct value *
-ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
+ada_value_cast (struct type *type, struct value *arg2)
{
if (type == ada_check_typedef (value_type (arg2)))
return arg2;
@@ -10351,7 +10351,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
Similarly, we need to perform the conversion from OP_LONG
ourselves. */
if ((op == OP_FLOAT || op == OP_LONG) && expect_type != NULL)
- arg1 = ada_value_cast (expect_type, arg1, noside);
+ arg1 = ada_value_cast (expect_type, arg1);
return arg1;
@@ -10374,7 +10374,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
arg1 = evaluate_subexp (type, exp, pos, noside);
if (noside == EVAL_SKIP)
goto nosideret;
- arg1 = ada_value_cast (type, arg1, noside);
+ arg1 = ada_value_cast (type, arg1);
return arg1;
case UNOP_QUAL: