This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Werror leakage
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 11 Jul 2002 15:25:49 -0400
- Subject: [patch] Werror leakage
Just FYI,
Some -Werrors that snuck in (one was mine).
Andrew
2002-07-11 Andrew Cagney <cagney@redhat.com>
* cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
Make static.
* arm-tdep.c (arm_register_name): Make return type constant.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.66
diff -u -r1.66 arm-tdep.c
--- arm-tdep.c 14 Jun 2002 22:55:40 -0000 1.66
+++ arm-tdep.c 11 Jul 2002 19:21:30 -0000
@@ -2503,7 +2503,7 @@
}
/* Return the ARM register name corresponding to register I. */
-static char *
+static const char *
arm_register_name (int i)
{
return arm_register_names[i];
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.19
diff -u -r1.19 cris-tdep.c
--- cris-tdep.c 11 Jul 2002 13:50:49 -0000 1.19
+++ cris-tdep.c 11 Jul 2002 19:21:31 -0000
@@ -774,8 +774,8 @@
/* Returns the register SRP (subroutine return pointer) which must contain
the content of the register PC after a function call. */
-CORE_ADDR
-cris_saved_pc_after_call (void)
+static CORE_ADDR
+cris_saved_pc_after_call (struct frame_info *frame)
{
return read_register (SRP_REGNUM);
}