This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]