This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Without any pedantic option, aix-4.1.5's native C compiler xlc issues the following warnings about gdb-4.17. Fixes are below. "gdb-4.17/gdb/symfile.c", line 2667.37: 1506-280 (W) Function argument assignment between types "void(*)(unsigned char*,int)" and "void(*)()" is not allowed. "gdb-4.17/gdb/symfile.c", line 2669.34: 1506-280 (W) Function argument assignment between types "void(*)(unsigned char*,int)" and "void(*)()" is not allowed. "gdb-4.17/gdb/symfile.c", line 2671.35: 1506-280 (W) Function argument assignment between types "void(*)(unsigned char*,int)" and "void(*)()" is not allowed. "gdb-4.17/gdb/symfile.c", line 2673.42: 1506-280 (W) Function argument assignment between types "void(*)(unsigned char*,int)" and "void(*)()" is not allowed. "gdb-4.17/gdb/tracepoint.c", line 1137.36: 1506-280 (W) Function argument assignment between types "int(*)(const void*,const void*)" and "int(*)()" is not allowed. For gdb : Tue Apr 28 23:38:16 1998 Philippe De Muyter <phdm@macqel.be> * symfile.c (overlay_auto_command): Add forgotten parameter definitions. (overlay_manual_command, overlay_off_command): Likewise. (overlay_load_command): Likewise. * tracepoint.c (memrange_cmp): Parameters have type void *, not struct memrange *. +++ ./gdb/symfile.c Thu Apr 23 18:09:49 1998 @@ -2309,6 +2309,8 @@ unmap_overlay_command (args, from_tty) static void overlay_auto_command (args, from_tty) + char *args; + int from_tty; { overlay_debugging = -1; if (info_verbose) @@ -2321,6 +2323,8 @@ overlay_auto_command (args, from_tty) static void overlay_manual_command (args, from_tty) + char *args; + int from_tty; { overlay_debugging = 1; if (info_verbose) @@ -2333,6 +2337,8 @@ overlay_manual_command (args, from_tty) static void overlay_off_command (args, from_tty) + char *args; + int from_tty; { overlay_debugging = 0; if (info_verbose) @@ -2341,6 +2347,8 @@ overlay_off_command (args, from_tty) static void overlay_load_command (args, from_tty) + char *args; + int from_tty; { if (target_overlay_update) (*target_overlay_update) (NULL); @@ -2543,7 +2551,7 @@ simple_overlay_update_1 (osect) cache_ovly_table[i][SIZE] == size */) { read_target_int_array (cache_ovly_table_base + i * TARGET_INT_BYTES, - (int *) &cache_ovly_table[i], 4); + (int *) cache_ovly_table[i], 4); if (cache_ovly_table[i][VMA] == osect->the_bfd_section->vma && cache_ovly_table[i][LMA] == osect->the_bfd_section->lma /* && cache_ovly_table[i][SIZE] == size */) --- ./gdb/tracepoint.c Sat Apr 25 20:14:22 1998 +++ ./gdb/tracepoint.c Thu Apr 23 18:07:05 1998 @@ -1108,9 +1108,14 @@ parse_and_eval_memrange (arg, addr, type /* compare memranges for qsort */ static int -memrange_cmp (a, b) - struct memrange *a, *b; +memrange_cmp (voidpa, voidpbb) + void *voidpa, *voidpb; { + struct memrange *a, *b; + + a = (struct memrange *) voidpa; + b = (struct memrbnge *) voidpb; + if (a->type < b->type) return -1; if (a->type > b->type) return 1;