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]

[patch] -Werror tweeks


FYI,

I've checked in the attatched.  It fixes some minor fallout from
proto-izing (word?) all functions.
FWIW, they are real portability bugs!

	Andrew
Tue Aug  1 14:50:55 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* top.c (get_prompt_1), tracepoint.c (replace_comma): Change
 	function signature to match cleanup function.

	* tracepoint.c (encode_actions): Fix arguments passed to
 	stringify_collection_list.

Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.16
diff -p -r1.16 top.c
*** top.c	2000/07/30 01:48:27	1.16
--- top.c	2000/08/01 04:59:42
*************** show_version (char *args, int from_tty)
*** 3179,3186 ****
  static int gdb_prompt_escape;
  
  static int
! get_prompt_1 (char *formatted_prompt)
  {
    char *local_prompt;
  
    if (event_loop_p)
--- 3179,3187 ----
  static int gdb_prompt_escape;
  
  static int
! get_prompt_1 (void *data)
  {
+   char *formatted_prompt = data;
    char *local_prompt;
  
    if (event_loop_p)
Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.8
diff -p -r1.8 tracepoint.c
*** tracepoint.c	2000/07/30 01:48:27	1.8
--- tracepoint.c	2000/08/01 04:59:51
*************** encode_actions (struct tracepoint *t, ch
*** 1625,1632 ****
    memrange_sortmerge (&tracepoint_list);
    memrange_sortmerge (&stepping_list);
  
!   *tdp_actions = stringify_collection_list (&tracepoint_list, &tdp_buff);
!   *stepping_actions = stringify_collection_list (&stepping_list, &step_buff);
  }
  
  static void
--- 1625,1632 ----
    memrange_sortmerge (&tracepoint_list);
    memrange_sortmerge (&stepping_list);
  
!   *tdp_actions = stringify_collection_list (&tracepoint_list, tdp_buff);
!   *stepping_actions = stringify_collection_list (&stepping_list, step_buff);
  }
  
  static void
*************** scope_info (char *args, int from_tty)
*** 2445,2452 ****
  
  /* worker function (cleanup) */
  static void
! replace_comma (char *comma)
  {
    *comma = ',';
  }
  
--- 2445,2453 ----
  
  /* worker function (cleanup) */
  static void
! replace_comma (void *data)
  {
+   char *comma = data;
    *comma = ',';
  }
  

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